🌐 feat(i18n): add internationalization support for TwoFASetting component

- Add comprehensive i18n support to TwoFASetting.js component
- Add all required English translations to en.json for 2FA settings
- Update component to accept t function as prop and use translation keys
- Fix prop passing in PersonalSetting.js to provide t function
- Maintain all existing UI improvements and functionality
- Support both Chinese and English interfaces for:
  * Main 2FA settings card with status indicators
  * Setup modal with guided steps (QR scan, backup codes, verification)
  * Disable 2FA modal with impact warnings and confirmation
  * Regenerate backup codes modal with success states
  * All buttons, placeholders, messages, and notifications
- Follow project i18n conventions using t('key') pattern
- Ensure seamless language switching for enhanced user experience

This enables the 2FA settings to be fully localized while preserving
the modern UI design and improved user workflow from previous updates.
This commit is contained in:
t0ng7u
2025-08-16 19:22:14 +08:00
parent a6c5b6d09f
commit 3004ede0ce
3 changed files with 119 additions and 64 deletions

View File

@@ -1043,7 +1043,7 @@ const PersonalSetting = () => {
</Card>
{/* 两步验证设置 */}
<TwoFASetting />
<TwoFASetting t={t} />
{/* 危险区域 */}
<Card