You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Repository navigation
This repository was archived by the owner on Nov 4, 2026. It is now read-only.
Activity
fix(i18n): make `en` the complete source of truth for grid import and…
fix(i18n): close the last three zh-branch gaps (#2871, part 3) (#2898)
os-zhuang commentedon Jul 28, 2026
P1 已完成;顺带修正 P2 的规模数字
在
main(dc334da)上重新实测:(b)(c) 已关闭
grid.import.*(134 键)与auth.setPassword.*(12 键)已归位到en.ts;ImportWizard的私有DEFAULTS兜底由packages/plugin-grid/src/ImportWizard.i18n-parity.test.ts钉死到en.grid.import,两份文案不会再各自漂移en ↔ zh 现在是精确对等的:2481 : 2481,双向 0 差异。
原 issue 记的是 357–359 键,现在是 469–471。这不是回退,而是把原本藏在组件私有兜底后面的缺口暴露出来了:
(b) 里那 146 条字符串此前只存在于
zh.ts,英文靠ImportWizard组件内的DEFAULTS才"碰巧"能显示。它们进入en.ts之后,按定义就成了其余 8 语的缺口——这些语言过去同样翻不了,只是当时统计不到。所以 P2 的实际工作量是 469–471 键 × 8 包 ≈ 3,760 条译文。
本轮新增命名空间未扩大缺口
cloudConnection、auth.remediation、auth.layout、environment、excelImport、cloudOnboarding、aiModelStatus、chatbotQuota、以及console.loadingHint,全部一次补齐 10 个语言包。相关的 parity 测试(cloudConnection-locale-parity、authRemediation-locale-parity、en-zh-key-parity)均已做过变异验证——即断言其在不变量被破坏时确实会红。P2 仍待决策
三条路(机器翻译先行 / 只补高频命名空间 / 引入 TMS)是产品质量决策,等确认后再动。P3 的全量 parity 测试跟在 P2 之后落地——现在加会立刻红 469×8。
Generated by Claude Code
fix(i18n): unconditional Chinese in the chatbot confirm card and fiel…
feat(i18n): translate the four highest-traffic namespaces into the ei…
os-zhuang commentedon Jul 28, 2026
Part (a) 第一阶段已合并(#2903):高频命名空间补齐
按「只补高频命名空间」的策略,
console/home/topbar/layout已补齐 —— 193 键 × 8 包 = 1,544 条。剩余缺口按命名空间(去重后 277–279 键):
这次为了给每个
console.ai.*键分类(标签 vs 出站消息),发现有 4 个键根本不是标签,而是按钮发给 agent 的正文:它们是否被认作「批准」,由 cloud 的
confirm-gate.tsAPPROVAL_RE判定 —— 该正则只认中文和英文。zh.ts里已有的注释写得很清楚:不匹配则 agent 会重新提议,而按钮看上去像失灵了,却不报任何错。所以
AiChatPage是按对话语言(而非 UI 语言)选这几条的,t()在非中文包里本就应该 miss 并回退到英文defaultValue。#2900 把
changesConfirmMessage加进了全部 10 个包,于是德/日/俄用户点「确认」时发出的是德/日/俄文,gate 匹配不上。#2903 已将其从 8 个包中移除,恢复英文回退。新增守卫
packages/i18n/src/__tests__/outbound-agent-messages.test.ts双向钉住该不变量:这 4 个键必须不在 8 个包里、且必须在 en/zh 里;同时第三条断言要求其余每一个console.ai标签都必须被翻译 —— 避免这个窄例外被扩大成「其它标签也可以不翻」的借口。两个方向都做过变异验证。后续
grid/gantt/dashboard。这些是数据表格/甘特图的专业术语,机器翻译出错风险高于本轮的导航类文案,建议单独判断是否值得做「」ja、„"de、« »fr),但建议母语者复核后再当作最终版本Generated by Claude Code
test(i18n): ratchet the four backfilled namespaces so they cannot sil…
fix(i18n): the change card's Confirm button sent text the cloud gate …
feat(i18n): complete the locale backfill — all ten packs reach full k…
fix(i18n): backfill the new detail keys into all ten locale packs (fr…
fix(detail): distinguish "in approval (editable)" from locked, and st…