Skip to content

Conversation

@Gaubee
Copy link
Contributor

@Gaubee Gaubee commented Dec 19, 2025

修复 Transfer 和 Home Tab 页面的 i18n 翻译问题。

问题

当使用 useTranslation(['transaction', 'common']) 时,第一个命名空间成为默认命名空间,导致 t('a11y.xxx')transaction 中查找而非 common,显示原始键名而非翻译文本。

修复

  • TransferTab.tsx: t("a11y.tabTransfer")t("common:a11y.tabTransfer")
  • HomeTab.tsx:
    • t("a11y.chainSelector")t("common:a11y.chainSelector")
    • t("a11y.scan")t("common:a11y.scan")

测试

  • 1307 单元测试通过
  • i18n 验证脚本通过
  • TypeScript 类型检查通过

@Gaubee Gaubee closed this Dec 19, 2025
@Gaubee Gaubee deleted the fix/i18n-namespace-prefix branch December 19, 2025 03:49
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants