全站 i18n 收尾:账户中心状态消息、权限提示页、终端因子面板
账户中心 account-copy.ts 新增 60+ 条状态/错误翻译 key,AccountCenter.tsx 将所有硬编码中英文支付提示改为 copy.xxx 引用。 entitlement-required 页拆分为 Client 组件接入 I18nProvider。 account/error.tsx 接入 useI18n 双语言支持。 终端 Global Weather Factors / Terminal Status 面板和大陆分组头 接入 t() 翻译,Heat/Active/Tradable/Primary/Closed 等标签跟随语言切换。 Tested: tsc --noEmit 通过, npm run build 通过
This commit is contained in:
@@ -171,6 +171,7 @@ const TERM = {
|
||||
globalWeatherFactors: { en: "Global Weather Factors", zh: "全球天气因子" },
|
||||
heat: { en: "Heat", zh: "高温风险" },
|
||||
active: { en: "Active", zh: "活跃" },
|
||||
watch: { en: "Watch", zh: "观察" },
|
||||
tradable: { en: "Tradable", zh: "可交易" },
|
||||
primary: { en: "Primary", zh: "主信号" },
|
||||
ai: { en: "AI", zh: "AI" },
|
||||
@@ -401,7 +402,7 @@ function GroupedMarketTable({
|
||||
{label}
|
||||
</span>
|
||||
<span className="text-[10px] text-slate-400">
|
||||
{group.rows.length} · {isEn ? "Active" : "活跃"} {group.activeCount} · {isEn ? "Watch" : "观察"} {group.watchCount}
|
||||
{group.rows.length} · {t("active", isEn)} {group.activeCount} · {t("watch", isEn)} {group.watchCount}
|
||||
{group.localTimeRange ? ` · LT ${group.localTimeRange}` : ""}
|
||||
{group.hotCity ? ` · Hot: ${group.hotCity}` : ""}
|
||||
</span>
|
||||
|
||||
Reference in New Issue
Block a user