Repository navigation
Conversation
The Stats pane hard-coded d, h and m, so Chinese read "24d 13h". It now uses the narrow Intl units the checks panel already formats with: 24天 13小时 in Chinese, unchanged "24d 13h" in English.
WorkspaceKanbanStatusLane printed status.label as stored, so the board showed Todo, In progress, In review and Done in English even though the catalog has 待办, 进行中, 评审中 and 完成. It now runs the label through translateWorkspaceBoardStatusLabel, which leaves renamed statuses alone, and passes the reactive t so a language switch re-renders the header and its "New workspace in …" tooltip.
…Chinese The Uninstall Orca summary joins its parts with Intl.ListFormat and then appended ".", so Chinese read "…和 2 台 SSH 主机." with an ASCII stop. A finalSentenceStop helper beside joinSentences leaves CJK text without a final stop and keeps "." for everything else. The footer also pasted its two "what stays" sentences together with a space; it now uses joinSentences, which puts 。 between Chinese sentences.
…ores While a community translation is active, the picker footer and the Settings → Language row offered "Switch back to …" as an English literal, so a broken pack could not garble it. They now read in the language the link restores, loading that catalog first and showing English until it arrives: a Chinese user who tries a pack sees 切换回系统语言(中文(简体)). The row's "Community translation by …" sentence follows the same rule.
The mobile page's terminal slide imitates a real terminal session, but every token went through t(), so Chinese showed 开发@mac, Orca/壮举-手机页面, "pnpm 测试 -- 搜索手机设备" and 经过 for PASS: machine translations of a prompt, branch, command and test output that a real terminal never translates. Names, terminal output and key caps are now English constants with a note not to translate them, and their 23 keys leave every locale catalog. The agent's reply is one paragraph, so it wraps at the frame width like real output.
主要 beside a branch name reads as "important" rather than marking the primary worktree. zh now shows the English "primary" in the worktree card and jump palette badges, pinned in locale-key-overrides.mjs with a note that it is untranslated on purpose.
…ied Chinese Add zh for the 144 renderer strings with no zh value (152 keys counting plural forms): the Uninstall Orca section, the language picker and community translations, the + menu icon row, the new worktree card style notice, ignored files in the delete dialog and the Mobile Emulator menu toast. Also translate 19 values that were still English in zh: the re-pair dialog and status rows, the sleep workspace dialog, the direct setup buttons and the sparse preset folder actions. Every value went through repairTranslatedValue, so agent reads 智能体. A key override keeps the card-style switch's "New" as 新版 rather than the generic 新建 (create).
Nearly every row in the Voice settings ended its short description with 。, and the speech model blurbs split two fragments with one more, as in "速度快。支持 25 种欧洲语言。". The 46 values the pane shows now drop the final stop and join their clauses with a comma, like the newer zh copy elsewhere. One label also switches 您 to 你.
The Uninstall section fixture hard-coded its group title in English, so screenshots in other languages looked untranslated even though Settings uses settings.uninstall.groupTitle.
|
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
zh.json conflicted and was merged per key. Upstream's own translations for the reworked card style notice win (试试新卡片, 新样式, 保留新样式, and its toast and kept copy), and the key override now pins 新样式 so the generic "New" → 新建 repair cannot replace it. Three Uninstall values follow upstream's new English for the orca serve row (searchDescription, rows.service, summary.service). Keys whose English upstream removed leave zh as well.
Upstream's "Open terminals will close." was pasted after the keeps sentence with a bare space, so Chinese ran the two together while the shared-hooks sentence after them already went through joinSentences. The footer now collects its sentences and joins them once.
Upstream reworked the Uninstall section after this branch was opened: the hooks row now lists agents and SSH hosts together, the terminal daemon and orca serve rows are new, and offline hosts explain what to run. Add zh for those 13 keys and the + menu row's hidden-items hint, through repairTranslatedValue as before.
Upstream moved workspace-board-status-label.ts into workspace-status/presentation while this branch was open. The merge carried the helper's new t parameter over, but the lane header still imported the old path.
…ranslatable (#46255) * fix(i18n): make Bots copy translatable on desktop and mobile Several Bots surfaces drew English that never reached the catalog, or joined translated sentences the English way: - Built-in templates: names, lines, examples, first chat, Watches, Does and Reports, schedules, event triggers and skill lines read through bots.templateText keys that hash the English (shared bot-template-text.ts), so a catalog edit falls back to its new English instead of a stale translation. A translated skill name keeps the folder name beside it. - New bot from a template shows its name, purpose and role lines in the UI language. Lines left as shown save the template's English to SOUL.md and edited lines save as typed. An untouched name creates the bot under the English name, which names its folder, its Linear and GitHub handle and its SOUL.md, and then renames it to the shown name. The phone's New bot sheet does the same for the name. A bot's description reads translated while SOUL.md still holds a template line. - Look-around schedule labels, the phone's Who can ask and access request copy, its permission mode words, the Home tab title and the local computer's name in Bots settings, New bot and hover cards now go through the catalog. - Sentences built in code use joinSentences, sentenceStop and finalSentenceStop instead of a hard-coded ". " or space, and name lists use narrow conjunction lists so CJK text gets its own comma. sentenceStop and finalSentenceStop are the helpers from #43139. * i18n: translate Bots and the remaining copy into Simplified Chinese Adds zh for 927 renderer and 996 mobile keys that had none: the Bots pages, settings, connectors and chat cards, the built-in template words, and the rest of the gap (native chat, settings, status bar, agent CLI updates, the phone's session and terminal settings). Values upstream had already translated are kept as they are. Every renderer value went through repairTranslatedValue, so agent reads 智能体. Two key overrides keep context-specific "Dismiss" labels: the reply a bot's create offer sends (忽略) and the branch auto-name dialog's button, which clears the saved error beside its own Close (清除). * i18n: drop final stops, localize Home and align terms in the zh Bots copy The Bots strings mixed upstream's existing zh with the new values: most ended with 。 while the new ones did not, and 13 kept "Home" and "Home Chat" in English beside a Home tab that now reads 主聊天. - Every zh value under the Bots surfaces (2960 renderer and 914 mobile keys) drops its final 。, as the rest of the new copy does. - "Home" becomes 主页 and "Home Chat" 主聊天, matching the tab title. - The three hand-over failure messages put 。 after {{reason}} instead of a space: the reason is always a catalog sentence, which no longer ends with a stop. - The new values use upstream's existing words: 条目 for items, 话题 for desktop threads, 长期无活动 for stale, 计划 for schedules, and the New bot labels 关注内容, 执行工作 and 汇报内容 on the offer cards. * i18n: use 事项 for items and 话题 for threads in the zh Bots copy Bots items read 事项 instead of 条目 on desktop and phone, and phone threads read 话题 like the desktop. The hover card's _one form now matches its _other form. * i18n: translate the Bots copy added upstream and use 事项, 项 and 话题 app-wide - zh for the strings upstream added since this branch's last update on desktop and phone, the template Does lines upstream rewrote, and the phone's new access copy. - Items read 事项 (GitHub and GitLab project items) or 项 (counts and UI parts) instead of 条目 or 项目, and threads read 话题 instead of 讨论串, across the app. - Upstream's new Bots strings drop their final 。, say Orca Cloud where the English does, and lose a few English leftovers (Google 文档 and 表格, @名称). * i18n: label the Reports line in the zh template identity text Each zh Reports line reads 在这里,<when>, which follows 汇报 only with a colon. * i18n: use one wording across the zh Bots copy Bots strings upstream had already translated now read like the rest of the Bots copy (958 renderer strings), with the same glossary and voice. Six key overrides keep statuses as 已完成 and pin the Up next dismiss (忽略) and the webhook Checks label (验证), which the repair policy would otherwise reword. * fix(i18n): translate template words on the bot-create offer card When a bot proposes a bot from a template, the card's title, purpose, origin line and Details read the template's name and lines in the UI language on desktop and phone (an optional translator on the shared offer view; callers without one keep the English). The phone catalog gets the template role lines it lacked. New bot's identity box shows the translated text only when every line has a translation, so a bot's own lines beside template ones no longer read half translated. * i18n: keep upstream's key order in the zh catalogs Only the order changes: every key keeps its value. Upstream's keys stay where upstream has them, and keys this branch adds sit beside their en siblings, so the diff shows changed values instead of moved objects. * fix(i18n): address review notes on the Bots copy - The phone names the owner's computer in its own language (bots.access.yourComputer) instead of the fixed English "your computer". - Only a template's default name, or that name with the number that keeps it free, reads translated; a custom proposal name stays as written. - New bot creates under an English name that is free on the host and then renames, so a free shown name can't fail on a taken English one. Text typed back to exactly what the dialog shows keeps the template's words, even if the language changes before Create. - Creating straight from the offer card renames to the shown name too. - zh: the Codex shared-server banner's Fix reads 修复, and "Turn off and stop server" is translated. * fix(i18n): translate Orca's own plugin names and descriptions The bundled theme plugins and the Multipass recipes read in the UI language wherever plugins are named: onboarding's theme looks, the Appearance theme groups, the plugin list and cards, and the plugin page. Names go through the shared plugin name disambiguation, so every list that passes a translator gets them; descriptions translate on the card, the plugin page and the author's other plugins. Keys hash the English (`plugins.displayText.t<hash>`), so a manifest edit shows its new English instead of a stale translation, and other plugins show as written. The hash moves to a shared helper the template text uses too. * i18n: keep the terminal key row's Paste key in English The phone's accessory key row reads Paste beside Esc and Tab, and so does the desktop's picture of it; the More keys sheet's Paste action stays translated. * i18n: keep the phone's Paste key in English in More keys too Key names stay English on the phone, like Esc, Tab and the Ctrl combos beside them. * fix(i18n): translate the GitHub project picker's Choose a project label The button showed a hard-coded English label before a project is picked; it now reads through the catalog (projectViews.picker.chooseProject, zh 选择项目). * i18n: keep reasoning effort level names in English in zh Minimal, Low, Medium, High, Extra high and Max (Min, Med, XHigh when short) read as the names agents use, on desktop and phone and for the commit-message model's thinking level; the Effort label and Off/Default stay translated. * fix(i18n): translate the local host name in a project's Available hosts The host rows, the host switcher and the runtime owner line showed the English "Local Mac"; default local labels now go through translateExecutionHostLabel, and named hosts keep their names. * i18n: use 主工作树 for the main checkout in zh The composer's workspace line said 主工作副本, and the worktree symlink and setup hook settings said 主检出 or 主仓库检出目录 for the same folder; all five strings now say 主工作树, as the sidebar and delete dialogs already do for the main worktree. * i18n: stop calling a checkout 检出 in zh A project's checkout on a host read 检出 (此检出, {{count}} 个检出, 已有的检出或文件夹), the git verb; it is now 仓库副本, the branch picker's checkout is 工作树, and a dev build's source checkout is 源码目录, on desktop and phone. The remove-project descriptions say 移除 like the dialog's title and button, because the files stay on disk. * fix(i18n): translate permission modes in the phone's bot settings The bot's Settings row and its permission picker used the shared English mode names and descriptions; they now read through mobilePermissionModeCopy, which uses the composer's catalog keys and matches the shared per-agent descriptions. * fix(i18n): create a template's bot under its English name, with no rename after A bot's name is saved data: it names the bot's folder and SOUL.md. New bot and the offer cards now create it once under the name shown in the field, which for a template is its English name, instead of creating it in English and renaming it to the translated name in a second write. The merge with main already dropped the rename from New bot on desktop and phone. * fix(i18n): key template words by template id and field Template words use named keys, bots.templates.<id>.<field> (and bots.templateSkills.lines.<skill>), as the rest of the catalogs do, instead of a hash of the English. Pages that show one template look up its own key; places that only hold the words (offer cards, SOUL.md descriptions, New bot's fields) find the key by the English. The zh translations move to the new keys unchanged. A test keeps both English catalogs equal to the template data, since en.json's value is what English renders. * fix(i18n): translate only official plugins' names, per language A third-party plugin whose name or description matched an official one's English showed the official translation; only official plugins are looked up now. Names built with a translator are no longer cached per plugin list, so they follow a language change and never leak into the untranslated callers. * fix(i18n): name a template's new bot in the UI language and list its parts translated Picking a template in Chinese now prefills its translated name (free among the existing names) and creates the bot once under it. A non-Latin name already makes a valid folder, as a typed one does. New bot's skill, automation and schedule popovers show the translated words through the same helper the template page uses. The catalog test now also catches words left behind by a removed template. * test(i18n): read the zh catalog with a type guard instead of a cast * test(i18n): read the zh catalog through a flattened map --------- Co-authored-by: x-Ai <[email protected]> Co-authored-by: Jinwoo-H <[email protected]>
ELI5
People using Orca in Simplified Chinese still ran into English, and into a few places where Chinese made things worse. Newer screens (Uninstall Orca, the language picker, the + menu icon row, the new card style notice) had no Chinese at all. The workspace board kept its column names in English, the agent time stat said "24d 13h", and the Voice settings ended almost every line with a full stop. The other way round, the mobile page's demo terminal translated a real terminal session into nonsense like "pnpm 测试 -- 搜索手机设备", and the primary worktree badge read 主要 ("important"). This PR fixes all of these.
What Changed
Nine commits, each self-contained:
StatsPanehard-codedd,handm. It now formats with the narrow Intl units the checks panel already uses (formatUiNarrowDuration): 24天 13小时 in Chinese, still "24d 13h" in English.WorkspaceKanbanStatusLaneprintedstatus.labelas stored, so Todo, In progress, In review and Done stayed English although the catalog has 待办, 进行中, 评审中 and 完成. It now goes throughtranslateWorkspaceBoardStatusLabel, which leaves renamed statuses alone, and passes the reactivetso a language switch updates the header and its "New workspace in …" tooltip.Intl.ListFormatand appended., giving "…和 2 台 SSH 主机." AfinalSentenceStophelper next tojoinSentencesleaves CJK text without a final stop and keeps.for everything else. The footer pasted its two "what stays" sentences together with a space; it now usesjoinSentences.languages.switchBackTo,switchBackToSystem,communityBy,communityTranslation.primaryin the card and jump palette badges, pinned inlocale-key-overrides.mjswith the reason.repairTranslatedValue, so agent reads 智能体. A key override keeps the card-style switch's "New" as upstream's 新样式 instead of the generic 新建 ("create").settings.uninstall.groupTitle.orca serverows, offline hosts) and the + menu's hidden-items hint are translated too, and the footer's new "Open terminals will close." sentence goes throughjoinSentenceswith the others. Where upstream had already translated the card style notice, its wording is kept.Why
Each of these shows up in everyday use for zh users: new settings pages that fall back to English, board and stats labels that never went through the catalog, and machine-translated text in places that should never be translated. Fixing them at the source (formatters, the lane header, the switch-back copy, constants for the terminal mock) keeps later catalog runs from bringing them back.
For the switch-back link, the alternatives were keeping English (unreadable for many non-English users) or translating it into the active pack's language (the very pack that may be broken). The language being restored is the one the user can read for sure.
Linked Issue
Refs #32207. This covers the Simplified Chinese catalog and a few renderer strings that bypassed it; the issue also tracks other locales, so it stays open. Follows #43011 and #43012.
Visual Proof
Simplified Chinese UI rendered through component fixtures (light theme), before and after this branch:
Testing
verify:localization-catalog,verify:localization-runtime-catalog,verify:localization-extractionandverify:localization-protected-copypass. zh.json coverage is 20360/20785; what is left are_oneforms zh never uses and about 90 keys from features merged after this PR opened.pnpm check:changed --base=upstream/mainpasses (typecheck, oxlint, oxfmt, code-quality, ratchets and the unit tests it selects).Risk
Level: Low. Mostly displayed text. The riskiest part is the switch-back link: if the restored language's catalog fails to load, the link stays in English as before.
finalSentenceStoponly drops the stop after CJK text; English output is unchanged, and so is "24d 13h". Removing the terminal mock keys only affects the marketing slide. Every commit can be reverted on its own.AI Disclosure
AI-assisted: an AI coding assistant helped draft the code changes and translations. I reviewed every change and checked the rendered screenshots and the checks above.
Review
translateWorkspaceBoardStatusLabelkeeps its signature; the newtparameter defaults totranslate, so other callers are unaffected.previousUiLanguageNamebecameusePreviousUiLanguageCopy, and its two callers were updated.Agent skill upstream boundary
Notes
No settings, stored data, native code or protocol changes. Mobile catalogs are untouched.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)