feat: 国际化处理

This commit is contained in:
2025-08-10 03:07:37 -07:00
parent 0d3b63c2fc
commit 01ac12c171
33 changed files with 268 additions and 123 deletions
@@ -46,10 +46,10 @@ export default function ChangePassword() {
'h-[32px] w-[110px] rounded-[50px] border-0 border-[#0F2C53] bg-[#0F2C53] text-center text-base font-medium leading-[32px] text-white transition hover:bg-[#225BA9] hover:text-white sm:hidden'
}
>
{t('save')}
</Button>
</div>
<div className={'text-xs font-light sm:text-[15px]'}></div>
<div className={'text-xs font-light sm:text-[15px]'}>{t('description')}</div>
</div>
<Form {...form}>
<form id='password-form' onSubmit={form.handleSubmit(onSubmit)} className='space-y-4'>
@@ -102,7 +102,7 @@ export default function ChangePassword() {
'h-full rounded-[50px] border-0 border-[#0F2C53] bg-[#0F2C53] px-[55px] py-[9px] text-xl font-bold text-white transition hover:bg-[#225BA9] hover:text-white'
}
>
{t('save')}
</Button>
</div>
</Card>
@@ -51,10 +51,10 @@ export default function NotifySettings() {
'h-[32px] w-[110px] rounded-[50px] border-0 border-[#0F2C53] bg-[#0F2C53] text-center text-base font-medium leading-[32px] text-white transition hover:bg-[#225BA9] hover:text-white sm:hidden'
}
>
{t('notify.save')}
</Button>
</div>
<div className={'text-xs font-light sm:text-[15px]'}></div>
<div className={'text-xs font-light sm:text-[15px]'}>{t('notify.description')}</div>
</div>
<Form {...form}>
<form
@@ -104,7 +104,7 @@ export default function NotifySettings() {
'h-full rounded-[50px] border-0 border-[#0F2C53] bg-[#0F2C53] px-[55px] py-[9px] text-xl font-bold text-white transition hover:bg-[#225BA9] hover:text-white'
}
>
{t('notify.save')}
</Button>
</div>
</Card>
@@ -245,13 +245,13 @@ export default function ThirdPartyAccounts() {
'h-[32px] w-[110px] rounded-full bg-[#D9D9D9] text-center font-medium leading-[32px] text-white sm:hidden'
}
>
{t('save')}
</div>
</div>
<div className='mb-2 text-xs text-[#666666] sm:mb-4 sm:mt-1 sm:text-sm'>
{user?.auth_methods?.[0]?.auth_identifier}
</div>
<div className={'mb-1 sm:mb-3'}>Email</div>
<div className={'mb-1 sm:mb-3'}>{t('emailLabel')}</div>
<div className={'flex items-center gap-2'}>
<div
className={
@@ -265,7 +265,7 @@ export default function ThirdPartyAccounts() {
'hidden h-[32px] w-[110px] rounded-full bg-[#D9D9D9] text-center text-[16px] font-medium leading-[32px] text-white sm:block'
}
>
{t('save')}
</div>
</div>
</Card>