|
|
@@ -158,7 +158,7 @@ export default function ProfileSettings() {
|
|
|
<div className="px-5 py-3 border-b-2 border-black bg-neutral-100 flex justify-between items-center text-xs font-black uppercase text-black">
|
|
|
<div className="flex items-center gap-2">
|
|
|
<span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
|
|
|
- <span>[ 01 // 个人身份资料档案 ]</span>
|
|
|
+ <span>[ {t('profile.identity_archive')} ]</span>
|
|
|
</div>
|
|
|
{!isEditing && (
|
|
|
<button
|
|
|
@@ -166,7 +166,7 @@ export default function ProfileSettings() {
|
|
|
className="px-3 py-1 bg-white hover:bg-amber-300 text-black border-2 border-black font-bold text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1 uppercase"
|
|
|
>
|
|
|
<Edit2 size={12} />
|
|
|
- <span>[ 编辑资料 ]</span>
|
|
|
+ <span>[ {t('profile.edit_profile_btn')} ]</span>
|
|
|
</button>
|
|
|
)}
|
|
|
</div>
|
|
|
@@ -191,12 +191,12 @@ export default function ProfileSettings() {
|
|
|
|
|
|
<div className="grid grid-cols-1 sm:grid-cols-2 gap-3 pt-1">
|
|
|
<div className="p-3 bg-neutral-50 border-2 border-black shadow-[2px_2px_0px_#000]">
|
|
|
- <span className="text-[10px] font-bold text-neutral-500 uppercase block mb-0.5">EMAIL // 绑定邮箱</span>
|
|
|
+ <span className="text-[10px] font-bold text-neutral-500 uppercase block mb-0.5">EMAIL // {t('profile.bound_email_label')}</span>
|
|
|
<p className="text-xs font-bold text-black truncate font-mono" title={user.email}>{user.email}</p>
|
|
|
</div>
|
|
|
<div className="p-3 bg-neutral-50 border-2 border-black shadow-[2px_2px_0px_#000]">
|
|
|
- <span className="text-[10px] font-bold text-neutral-500 uppercase block mb-0.5">PHONE // 联系电话</span>
|
|
|
- <p className="text-xs font-bold text-black font-mono">{user.phone || '未填写'}</p>
|
|
|
+ <span className="text-[10px] font-bold text-neutral-500 uppercase block mb-0.5">PHONE // {t('profile.contact_phone_label')}</span>
|
|
|
+ <p className="text-xs font-bold text-black font-mono">{user.phone || t('profile.not_set')}</p>
|
|
|
</div>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -216,7 +216,7 @@ export default function ProfileSettings() {
|
|
|
<Camera className="text-black" size={24} />
|
|
|
</div>
|
|
|
</label>
|
|
|
- <span className="text-[11px] font-bold text-neutral-700 underline cursor-pointer">[ 更换头像 ]</span>
|
|
|
+ <span className="text-[11px] font-bold text-neutral-700 underline cursor-pointer">[ {t('profile.change_avatar_btn')} ]</span>
|
|
|
<input
|
|
|
id="avatar-upload"
|
|
|
type="file"
|
|
|
@@ -229,7 +229,7 @@ export default function ProfileSettings() {
|
|
|
|
|
|
<div className="flex-1 space-y-3 w-full">
|
|
|
<div>
|
|
|
- <label className="block text-xs font-bold uppercase text-black mb-1">[ 绑定邮箱(系统只读) ]</label>
|
|
|
+ <label className="block text-xs font-bold uppercase text-black mb-1">[ {t('profile.email_readonly_label')} ]</label>
|
|
|
<input
|
|
|
type="text"
|
|
|
disabled
|
|
|
@@ -239,18 +239,18 @@ export default function ProfileSettings() {
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
- <label className="block text-xs font-bold uppercase text-black mb-1">[ 用户昵称 ]</label>
|
|
|
+ <label className="block text-xs font-bold uppercase text-black mb-1">[ {t('profile.nickname_label_form')} ]</label>
|
|
|
<input
|
|
|
type="text"
|
|
|
className="w-full border-2 border-black bg-neutral-50 p-2.5 text-xs font-sans focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black"
|
|
|
value={nickname}
|
|
|
onChange={(e) => setNickname(e.target.value)}
|
|
|
- placeholder="设置您的称呼..."
|
|
|
+ placeholder={t('profile.nickname_placeholder_form')}
|
|
|
/>
|
|
|
</div>
|
|
|
|
|
|
<div>
|
|
|
- <label className="block text-xs font-bold uppercase text-black mb-1">[ 常用手机号 ]</label>
|
|
|
+ <label className="block text-xs font-bold uppercase text-black mb-1">[ {t('profile.phone_label_form')} ]</label>
|
|
|
<input
|
|
|
type="text"
|
|
|
className="w-full border-2 border-black bg-neutral-50 p-2.5 text-xs font-mono focus:bg-white outline-none shadow-[2px_2px_0px_#000] text-black"
|
|
|
@@ -266,14 +266,14 @@ export default function ProfileSettings() {
|
|
|
onClick={handleCancel}
|
|
|
className="px-4 py-2 border-2 border-black bg-neutral-100 text-black font-bold text-xs shadow-[2px_2px_0px_#000] hover:bg-neutral-200 transition active:translate-x-0.5 active:translate-y-0.5 uppercase"
|
|
|
>
|
|
|
- [ 取消 ]
|
|
|
+ [ {t('common.cancel')} ]
|
|
|
</button>
|
|
|
<button
|
|
|
type="submit"
|
|
|
disabled={loading}
|
|
|
className="px-6 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[3px_3px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none flex items-center gap-1.5 uppercase disabled:opacity-50"
|
|
|
>
|
|
|
- {loading ? <Loader2 size={14} className="animate-spin" /> : <><Save size={13} /> <span>[ 保存档案 ]</span></>}
|
|
|
+ {loading ? <Loader2 size={14} className="animate-spin" /> : <><Save size={13} /> <span>[ {t('profile.save_archive')} ]</span></>}
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|
|
|
@@ -288,7 +288,7 @@ export default function ProfileSettings() {
|
|
|
<div className="bg-white border-2 border-black shadow-[4px_4px_0px_#000]">
|
|
|
<div className="px-5 py-3 border-b-2 border-black bg-neutral-100 text-xs font-black uppercase text-black flex items-center gap-2">
|
|
|
<span className="w-2.5 h-2.5 bg-amber-300 border border-black inline-block" />
|
|
|
- <span>[ 02 // 账户凭证与安全密码 ]</span>
|
|
|
+ <span>[ {t('profile.account_credentials')} ]</span>
|
|
|
</div>
|
|
|
<div className="p-6">
|
|
|
<div className="flex flex-col sm:flex-row items-start sm:items-center justify-between gap-4 p-4 border-2 border-black bg-neutral-50 shadow-[2px_2px_0px_#000]">
|
|
|
@@ -305,7 +305,7 @@ export default function ProfileSettings() {
|
|
|
onClick={() => setIsPasswordModalOpen(true)}
|
|
|
className="px-4 py-2 bg-amber-300 hover:bg-amber-400 text-black border-2 border-black font-black text-xs shadow-[2px_2px_0px_#000] transition active:translate-x-0.5 active:translate-y-0.5 active:shadow-none uppercase whitespace-nowrap"
|
|
|
>
|
|
|
- [ 修改安全密码 → ]
|
|
|
+ [ {t('profile.change_password_btn')} ]
|
|
|
</button>
|
|
|
</div>
|
|
|
</div>
|