fix(auth): localize reset password confirmation (#4769)

* fix(auth): localize reset password confirmation

Wrap reset confirmation page copy in frontend i18n calls and add matching locale entries so the page no longer mixes translated labels with hardcoded English copy.

* fix(auth): use semantic reset i18n keys
This commit is contained in:
Neo
2026-05-19 01:14:49 -07:00
committed by GitHub
parent fc08c133e2
commit cb9270ed23
7 changed files with 37 additions and 5 deletions
@@ -112,8 +112,8 @@ export function ResetPasswordConfirm({
</h2>
<p className='text-muted-foreground text-left text-sm sm:text-base'>
{newPassword
? 'Your password has been reset successfully'
: 'Confirm the reset request to generate a new password.'}
? t('auth.resetPasswordConfirm.success')
: t('auth.resetPasswordConfirm.description')}
</p>
</div>
@@ -178,10 +178,12 @@ export function ResetPasswordConfirm({
}
>
{newPassword
? 'Return to login'
? t('auth.resetPasswordConfirm.backToLogin')
: isActive
? `Retry (${secondsLeft}s)`
: 'Confirm reset password'}
? t('auth.resetPasswordConfirm.retry', {
seconds: secondsLeft,
})
: t('auth.resetPasswordConfirm.confirm')}
</Button>
{!newPassword && (