Repository navigation
fix(i18n): fill Simplified Chinese coverage gaps on desktop and mobile - #43011
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Add 361 desktop and 633 mobile translations for English keys that still
fell back to English: workspace cleanup, the MCP server panel and sign-in
requests, subagent views, automation runs, worktree cards, Memory Saver,
account rename, PR updates and the freeze report on desktop, and most of
the mobile pull request, source control, tasks, agents and session screens.
Mobile code often calls a plural key literally as t('key_one') when the
count is 1, and i18next looks that key up as written, so zh showed English
for a single item. Add the explicitly called _one keys, each equal to its
_other value.
Also correct two browser search keywords that rendered cookies as 曲奇饼,
and entries that called archive scripts 存档 where the catalog says 归档.
The worktree cards "New" badge keeps 新功能 via a key override, mobile
"Start workspace" matches the desktop wording, and an automation's Active
status and list group read 已启用 (paired with 已暂停) instead of 当前.
Co-authored-by: Neil <[email protected]>
b9b2014 to
36ca3c5
Compare
ELI5
People using Orca in Simplified Chinese still saw English in about 1,000 places. On desktop that included workspace cleanup, the MCP servers panel in chat, subagent views, automation runs, worktree cards, Memory Saver, account rename, PR update settings, and the freeze report. On mobile it covered most of the pull request, source control, tasks, agents, and session screens. Counts of exactly one item on mobile, like "1 agent", also stayed in English. This PR adds the missing translations.
What Changed
The change is catalog data in
src/renderer/src/i18n/locales/zh.jsonandmobile/src/i18n/locales/zh.json, plus key overrides inconfig/scripts/locale-catalog/locale-key-overrides.mjs. No app code changed.t('key_one')when the count is 1. i18next looks that key up exactly as written, and zh only hadkey_other, so the lookup fell back to English. This adds the explicitly called_onekeys, each with the same value as its_other.Why
Missing values make whole screens fall back to English for zh users. The literal
_onecalls also showed English for single items even where the plural form was already translated.Linked Issue
Refs #32207. This covers only the Simplified Chinese catalog. The issue also tracks other locales and strings outside the renderer gate, so it stays open.
Visual Proof
The desktop MCP servers panel in chat, rendered with the zh locale through component fixtures (dark theme).
Testing
verify:localization-catalogs,verify:localization-catalog, andverify:localization-runtime-catalogpass. zh.json coverage is 20202/20656.mobile/src/i18n/mobile-i18n.test.tsand theconfig/scripts/localization/catalog-validationvitest suites pass.oxfmt --check, the anti-slop and code-quality oxlint configs,ast-grep scan, andcheck-changed-code-qualityare clean on the touched files.