feat: add avatar cropping with Cropper.js and server-side resize
This commit is contained in:
@@ -83,6 +83,14 @@ var translations = map[Lang]map[string]string{
|
||||
"gender_male": "Male",
|
||||
"gender_female": "Female",
|
||||
"gender_other": "Other",
|
||||
|
||||
// Avatar cropping
|
||||
"crop_avatar_title": "Crop Avatar",
|
||||
"crop_cancel": "Cancel",
|
||||
"crop_confirm": "Confirm",
|
||||
"crop_uploading": "Uploading...",
|
||||
"crop_success": "Avatar updated.",
|
||||
"crop_error": "Failed to upload avatar. Please try again.",
|
||||
},
|
||||
ZH: {
|
||||
// 导航
|
||||
@@ -153,6 +161,14 @@ var translations = map[Lang]map[string]string{
|
||||
"gender_male": "男",
|
||||
"gender_female": "女",
|
||||
"gender_other": "其他",
|
||||
|
||||
// 头像裁剪
|
||||
"crop_avatar_title": "裁剪头像",
|
||||
"crop_cancel": "取消",
|
||||
"crop_confirm": "确认",
|
||||
"crop_uploading": "上传中...",
|
||||
"crop_success": "头像已更新。",
|
||||
"crop_error": "头像上传失败,请重试。",
|
||||
},
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user