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 }}
Repository navigation
fix(i18n): translate Bots into Simplified Chinese and make its copy translatable - #46255
With Orca set to Simplified Chinese, the new Bots feature was still mostly English: the template browser, New bot filled in from a template (name and identity box), the phone's Who can ask and access-request screens, the bot's Home tab, look-around schedules, and "Local Mac" in the bot pickers. A few sentences built in code also kept English full stops, ran Chinese sentences together, or listed names with no separator ("GoogleGitHub"). This PR sends that copy through the catalog and adds the missing Chinese on desktop and phone. A template still writes English into a new bot's SOUL.md unless the owner edits it. It also rewords the Bots strings upstream had already translated, so the whole feature uses one glossary, and settles two zh words across the app: items are 事项 (or 项 for counts) and threads are 话题.
What Changed
Code (desktop and phone)
Built-in templates: names, one-line descriptions, examples, first chat, Watches/Does/Reports, schedules, event triggers and actions, and skill descriptions read through bots.templateText.t<hash> keys (shared src/shared/bots/bot-template-text.ts). The key is an FNV-1a hash of the English, so when a template's English changes, the UI shows the new English instead of a stale translation. A translated skill name keeps its folder name beside it (PR 评审清单(pr-review-checklist)); English still shows the folder name alone.
New bot from a template: the name and the identity box show in the UI language. The identity box is built from the translated lines (shownTemplateIdentity: bots.new.identityWatches/identityReports and joinSentences). Left as shown, the template's English lines seed SOUL.md exactly as today (identityUntouched accepts the English or the translated text); edited, the typed text replaces them, as upstream already does. An untouched name creates the bot under the English template name, which names its folder, its Linear/GitHub handle and its SOUL.md, and then renames it to the shown name through the existing bots.update (a rename never touches the folder or SOUL.md). The phone's New bot sheet does the same for the name (shared botTemplateShownName).
Bot descriptions (hover card, chat persona, Settings, Cmd+J, mention picker) read translated while SOUL.md still holds a template line.
Look-around schedule labels move to bot-look-around-every-label.ts (bots.lookAroundEvery.*) for desktop and phone; LOOK_AROUND_EVERY_LABELS stays English for the main-process chat note.
Phone access copy: Who can ask, the access-request rows, the access decision sheet and permission-mode words go through the catalog. mobile-bot-access-copy.ts reuses the desktop's bots.access.* ids (mobile en now carries all 81), and mobile-permission-mode-copy.ts reuses the composer's keys. accessDecisionCopy, accessRequestLine and accessDecideFailureLine take a translator, ACCESS_REQUEST_EXPIRED_LINE becomes accessRequestExpiredLine(t), and the tools page's "native check did not finish" fallback is a catalog string. botReachLineText takes an optional translator; botAccessCopy still returns English for any caller that doesn't translate.
Home tab: shows bots.tabs.homeTitle on desktop and phone. The stored conversation name stays Home, because main uses it to find the chat.
Local computer name: "Local Mac" goes through translateLocalExecutionHostLabel in Settings › Bots, New bot's computer picker, the bot's computer page and the hover card.
Sentences built in code: the host notice, the webhook copy toast, the feature tip, the access-reach detail and the uninstall footer use joinSentences and two new helpers in src/shared/text/sentence-joining.ts, sentenceStop and finalSentenceStop, instead of a hard-coded ". " or space.
Name lists: connector names and the workspace cleanup summary use a narrow conjunction Intl.ListFormat (CJK unit lists have no separator, which rendered "GoogleGitHub").
localization-surfaces.mjs registers the two new shared copy modules for both surfaces.
Simplified Chinese
zh for 1105 renderer and 1597 mobile keys that had none, apart from values identical to English (brand names, placeholders): the Bots pages and settings, connectors and chat cards, the phone's Bots settings pages, template words, and the rest of the gap. zh coverage goes from 22611/23840 to 23716/24106 on desktop and from 4187/5520 to 5784/5813 on the phone; what is left is _one forms zh never uses.
Bots strings drop their final 。. Home and Home Chat read 主页 and 主聊天 where upstream left them in English, the three hand-over failure messages put 。 after {{reason}} (the reason is always a catalog sentence), and the Orca Cloud sign-in lines say Orca Cloud where the English does.
Items read 事项 (bot items, GitHub and GitLab project items) or 项 (counts and UI parts) instead of 条目, or 项目, which already means "project" here. Threads read 话题 instead of 讨论串, and stale items read 长期无活动. This covers upstream's existing values too, app-wide.
Seven upstream values that kept English words are translated (Google 文档 and Google 表格 for Docs and Sheets, @名称 for @name, the webhook example sentence).
The 958 renderer Bots strings upstream had already translated are reworded to match the new ones, so the Bots copy reads with one glossary and voice (主聊天, 巡视, 记忆维护, 灵魂, 工作者, 群组, 移交, …) instead of two passes side by side.
Every changed value follows upstream's conventions: 智能体 for agent, “ ” quotes, 计划 for schedules, and repairTranslatedValue for every renderer value. Eight key overrides pin what the repair policy would reword: the reply a bot's create offer sends (忽略), the branch auto-name dialog's button, which clears the saved error beside its own Close (清除), four bot statuses that read as states (已完成, not the button word 完成), the Up next dismiss (忽略), and the webhook's Checks label, which names its signature checks (验证).
Why
These strings never reached the catalog, or were glued together in code, so translating catalog values alone could not fix them.
SOUL.md keeps the template's English for untouched lines because it is the bot's standing instructions: writing a translation would change what every template user gets and mix languages with its English skeleton (## How I work, ## Never). Owners who edit still get their own words.
Creating under the English name and then renaming keeps the folder and the Linear/GitHub handle readable (botFolderName keeps ASCII only, so a Chinese name becomes bot), and it uses the existing rename path, which older paired hosts already support. The alternative, a new create parameter for a separate display name, would be silently dropped by older hosts.
Hash keys keep translations out of the template catalog, which is shared by main, renderer and phone and is partly agent-facing.
条目 and 项目 read like machine translation to Chinese readers, and 项目 collides with Project in the GitHub and Linear views; 事项 is the everyday word for a piece of work to follow up on.
Linked Issue
Part of #32207, the localization issue; this PR covers Simplified Chinese, and other locales stay tracked there. Builds on #43011 and #43012.
Visual Proof
Simplified Chinese UI rendered through component fixtures (headless Chrome in a zh-CN locale, light theme), before (upstream main) and after this branch:
New bot from a template (bots/NewBotDialog:template)
"From Support triage" in the New bot fixture and the bot name "Bot builder" in the settings fixture are the fixtures' sample data, so they show as written.
Testing
ORCA_CODE_QUALITY_BASE=upstream/main pnpm check:changed: all 40 checks pass (localization catalogs, coverage and extraction, mobile localization, protected copy, typecheck, lint, ratchets, unit tests).
The mobile-web render tests for the phone's bot sheet, access requests and look-around pass.
Desktop typecheck (pnpm tc) and the mobile typecheck.
A temporary component test (not committed, per the test policy) confirmed that an untouched template sends English create params and then renames to the shown name, and that an edited name or line is saved as typed.
Manually tested in Simplified Chinese on macOS in a local arm64 build carrying these changes before upstream's identity box landed: template browser, New bot (untouched and edited fields), Bots settings. The identity-box version is covered by the fixtures above and typecheck. The phone changes were checked by typecheck and the tests above, not on a device.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
No new tests: the catalog checks cover keys, placeholders and coverage, and the create-and-rename flow was verified with the temporary test above.
Performance
None, because the added work is catalog lookups when Bots views render (one 32-bit hash per template line shown) and one rename call after a bot is created from a template in a translated UI; nothing new polls, runs on startup, or touches disk or IPC.
Risk
Level: Low
English UI behaves as before: translations are the identity, so nothing is renamed and every saved value is unchanged.
New bot in a translated UI renames the bot right after creating it. If that rename fails (for example the host drops mid-create), the bot keeps its English name and works normally.
The identity box counts as untouched when it holds the English or the translated text; any edit replaces the template's lines, as upstream already does.
Display lookups key on a 32-bit hash of the English; a user-written description only shows a translation if it hashes to one of the ~245 template strings, which is negligible.
Phones paired with an older desktop keep that desktop's bundle and see no change.
The app-wide 事项/项/话题 changes and the reworded Bots strings only touch zh values.
Back out with a plain revert. Bots created in the meantime keep the Chinese display name they were given; their SOUL.md is English either way.
AI Disclosure
Prepared with help from an AI coding assistant (code changes, translations and checks). I reviewed the changes and tested the result.
Review
Agent skill upstream boundary
Not applicable, or this change copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
This PR is small and focused (focused on Bots localization, but catalog-heavy; the code is 43 files)
I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
I stated the risk: what could break, for whom, and how to back it out
Before/after screenshots or videos attached for UI changes, or N/A with reason
Self-reviewed for correctness, security, and performance
Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A): copy only; remote hosts use the same catalog, and the rename goes through the host's existing bots.update
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred): lint, typecheck and the affected tests ran through check:changed; the build is left to CI
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 stablyai#43139.
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
(清除).
…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.
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.
Upstream turned a template's Watches/Does/Reports into one identity box
in New bot and split the phone's bot settings into pages. The Bots copy
stays translatable on the new structure: the identity box shows the
template's lines in the UI language and keeps the template's English in
SOUL.md until it is edited, and the phone's Who can ask page and access
decision sheet read their copy through the catalog.
…-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
表格, @名称).
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.
Catalogs merge per key: this branch's zh wins where upstream translated
the same Bots keys since, and the strings upstream added (group chats
across computers, deleting a bot with unsaved drafts) get zh too.
It looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the reviews.auto_review.auto_pause_after_reviewed_commits setting.
No actionable comments were generated in the recent review.
Walkthrough
The changes add shared helpers for translating bot-template text, look-around schedules, plugin display text, and sentence punctuation. Desktop and mobile bot workflows use translated template, access, permission, host, and status text. Bot creation derives displayed names from translated proposals and can request a rename after creation. English and Chinese locale catalogs gain or revise strings across bot workflows and other interface areas.
Merge Risk: Low · previous review 25b29
Bot and interface copy is now translated into Simplified Chinese on desktop and phone. Remaining issues are small. A repeated create from the same bot offer could rename an existing bot back to the template's translated name. Third-party plugins whose text matches a bundled plugin's text could show Orca's translation. Plugin names shown in the status bar or elsewhere could stay in the wrong language after a language switch. None of these blocks merging, but they are worth fixing or accepting knowingly.
Pre-merge checks: 4
Check name
Status
Explanation
Title check
The title names the main change: Bots are translated into Simplified Chinese and their copy is made translatable. The changeset matches this. It also includes the catalog, the code changes for transla…
Description check
The description follows the repository template. It includes ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, the upstream boundary checkbox, and the che…
Linked Issues check
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Full details: Title check
Explanation
The title names the main change: Bots are translated into Simplified Chinese and their copy is made translatable. The changeset matches this. It also includes the catalog, the code changes for translatable copy, and the zh.json work, so the title fits the change.
Full details: Description check
Explanation
The description follows the repository template. It includes ELI5, What Changed, Why, Linked Issue, Visual Proof, Testing, Performance, Risk, AI Disclosure, the upstream boundary checkbox, and the checklist. Required content is present: Performance has a reasoned line, Risk has a level and back-out plan, and the linked issue is an existing tracking issue (#32207). Some items remain open. The Visual Proof section still contains placeholder comments and no attached before/after pairs. The Linked Issue uses 'Part of' rather than 'Fixes'. The Risk Level line is filled, and the lint/typecheck/build checkbox is unchecked and deferred to CI.
Resolution
Attach the before/after screenshots or videos listed under Visual Proof. Remove the leftover placeholder comment. Confirm the linked-issue approach is acceptable for an outside contributor, since the template asks for an actual issue link. Check the pnpm build step or note it as CI-covered.
Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 21efe4f3-babc-49bc-bb0a-f6e100a048a6
Commits
Reviewing files that changed from the base of the PR and between 75ea2e4 and 25b290c.
Files selected for processing: 2
mobile/src/i18n/locales/zh.json
src/renderer/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 2
mobile/src/i18n/locales/zh.json
src/renderer/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 7 remain after this review.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
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.
- 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.
Files skipped from review as they are similar to previous changes: 6
mobile/src/i18n/en-runtime-required.json
mobile/src/i18n/locales/en.json
mobile/src/i18n/locales/zh.json
src/renderer/src/i18n/en-runtime-required.json
src/renderer/src/i18n/locales/en.json
src/renderer/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.
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.
Files skipped from review as they are similar to previous changes: 3
src/renderer/src/i18n/en-runtime-required.json
src/renderer/src/i18n/locales/en.json
src/renderer/src/i18n/locales/zh.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 8 remain after this review.
Catalogs merge per key and keep upstream's key order: this branch's zh
wins where upstream translated the same keys since, the strings upstream
added (Slack token reconnect, more GitHub accounts, the phone's session
hand-off) get zh, and the phone's _one forms match their _other.
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.
The button showed a hard-coded English label before a project is picked; it now reads through the catalog (projectViews.picker.chooseProject, zh 选择项目).
The phone's New bot sheet keeps upstream's new ListedBot import beside
this branch's rename imports, and reads taken names from upstream's
renamed botsOn. The phone's new Slack connector page shows its access
requests through the catalog, as the Who can ask page does. Catalogs
merge per key and keep upstream's key order; the 278 strings the phone
gained (sharing bots by link, Slack setup, connectors, bot automations)
get zh, mostly the desktop's wording for the same keys.
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.
The phone's generated runtime catalog is regenerated; catalogs merge per key and keep upstream's key order, and the phone's new soul, memory and skills pages get zh.
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.
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.
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.
Upstream's Add people for Who can ask on the phone now reads through the catalog like the rest of the phone's access copy: the confirm for several people gets its own "What they can do" line instead of an English "they" inside the one-person line, names are listed in the UI language, and the picker's note joins its two sentences with joinSentences. The phone's 31 new keys get zh, reused from the desktop's same keys.
EditorEditFileSurface.tsx moves one JSX comment above its return: two upstream fixes that each added a line left the file at 401 lines, over the 400-line lint limit, which blocks any commit that stages it.
Upstream moved the Slack page's access requests and people into the shared MobileConnectorAccountParts that its new Linear, GitHub, Google and Composio pages use; those request rows now read through the catalog as the Slack page's did. The phone's 163 new connector keys and the desktop's agent-exited notice get zh, mostly reused from the desktop's same keys. EditorEditFileSurface.tsx is upstream's again, now that upstream keeps it under the line limit itself.
@AmethystLiang@brennanb2025
Could you review this when you have a moment, and approve and merge it if it looks good? It makes the Bots copy translatable on desktop and phone and adds the Simplified Chinese for it. The branch is up to date with main and pnpm check:changed passes locally; the workflows may need a maintainer's approval to run on this fork PR. Thanks!
Upstream retranslated its update settings. Where it now translates keys this branch had filled in (the newer-server count, the automatic update note and failures), its wording wins, as for other non-Bots keys; its new and reworded update-channel strings come in as written, and the keys it removed drop.
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.
Upstream now writes bot, bots and Bots in the zh catalogs instead of 机器人, and shortens Needs you to 需要你 in the sidebar and bot panels. This branch follows it: every zh value naming Orca's bots says bot or bots after the English (Bots for the feature and Settings › Bots, Bot at the start of a label, bot after a measure word), on desktop and phone, keeping its own wording otherwise; 机器人 stays only for GitHub bot authors. Phone keys shared with the desktop take its shortened Needs you, and the two new Replying to strings get zh.
Upstream's new strings get zh in this branch's style: chat deletion, the composer's bot picker and queued messages, WSL host restarts and moves, the Slack and GitHub setup previews, item loading and held answers, and the phone's bot reordering. Keys whose English upstream rewrote take upstream's translation; keys it removed drop.
…name 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.
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.
Thanks for this, @x-Ai. I pushed three commits on top to get it ready to merge. Your commits and translations are unchanged.
Named keys instead of hash keys. Template words now use templates.<template id>.<field> keys (for example templates.pr-review.line), and skill lines use templateSkills.lines.<skill>. That matches every other key in the catalogs. All 245 zh translations moved to the new keys as they were. Editing a template's English now works like editing any other string: update en.json too, and translators refresh the other languages. A small test fails if en.json and the template data drift apart, because the en.json value is what English shows.
No rename after create. Creating from a template used to save the English name first and then rename it to the translated name in a second write. Now the field is prefilled with the template's name in the UI language (free among existing names), and it's created once under whatever the field holds. A non-Latin name already makes a valid folder, the same way a typed one does, so no second write is needed. The skill, automation and schedule popovers in the create dialog now show translated words too.
I also merged main and resolved the conflicts. Main had moved the phone's permission picker into its own page, so its translated copy moved there too.
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.
…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.
Adds Korean for the 272 bot template keys from #46255 (bots.templates.* and bots.templateSkills.*) in the desktop and mobile catalogs, using 저장소 and 병합 to match the rest of the Korean catalog.
Fixes#47240
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
ELI5
With Orca set to Simplified Chinese, the new Bots feature was still mostly English: the template browser, New bot filled in from a template (name and identity box), the phone's Who can ask and access-request screens, the bot's Home tab, look-around schedules, and "Local Mac" in the bot pickers. A few sentences built in code also kept English full stops, ran Chinese sentences together, or listed names with no separator ("GoogleGitHub"). This PR sends that copy through the catalog and adds the missing Chinese on desktop and phone. A template still writes English into a new bot's SOUL.md unless the owner edits it. It also rewords the Bots strings upstream had already translated, so the whole feature uses one glossary, and settles two zh words across the app: items are 事项 (or 项 for counts) and threads are 话题.
What Changed
Code (desktop and phone)
bots.templateText.t<hash>keys (sharedsrc/shared/bots/bot-template-text.ts). The key is an FNV-1a hash of the English, so when a template's English changes, the UI shows the new English instead of a stale translation. A translated skill name keeps its folder name beside it (PR 评审清单(pr-review-checklist)); English still shows the folder name alone.shownTemplateIdentity:bots.new.identityWatches/identityReportsandjoinSentences). Left as shown, the template's English lines seed SOUL.md exactly as today (identityUntouchedaccepts the English or the translated text); edited, the typed text replaces them, as upstream already does. An untouched name creates the bot under the English template name, which names its folder, its Linear/GitHub handle and its SOUL.md, and then renames it to the shown name through the existingbots.update(a rename never touches the folder or SOUL.md). The phone's New bot sheet does the same for the name (sharedbotTemplateShownName).bot-look-around-every-label.ts(bots.lookAroundEvery.*) for desktop and phone;LOOK_AROUND_EVERY_LABELSstays English for the main-process chat note.mobile-bot-access-copy.tsreuses the desktop'sbots.access.*ids (mobile en now carries all 81), andmobile-permission-mode-copy.tsreuses the composer's keys.accessDecisionCopy,accessRequestLineandaccessDecideFailureLinetake a translator,ACCESS_REQUEST_EXPIRED_LINEbecomesaccessRequestExpiredLine(t), and the tools page's "native check did not finish" fallback is a catalog string.botReachLineTexttakes an optional translator;botAccessCopystill returns English for any caller that doesn't translate.bots.tabs.homeTitleon desktop and phone. The stored conversation name staysHome, because main uses it to find the chat.translateLocalExecutionHostLabelin Settings › Bots, New bot's computer picker, the bot's computer page and the hover card.joinSentencesand two new helpers insrc/shared/text/sentence-joining.ts,sentenceStopandfinalSentenceStop, instead of a hard-coded". "or space.Intl.ListFormat(CJKunitlists have no separator, which rendered "GoogleGitHub").localization-surfaces.mjsregisters the two new shared copy modules for both surfaces.Simplified Chinese
_oneforms zh never uses.{{reason}}(the reason is always a catalog sentence), and the Orca Cloud sign-in lines say Orca Cloud where the English does.repairTranslatedValuefor every renderer value. Eight key overrides pin what the repair policy would reword: the reply a bot's create offer sends (忽略), the branch auto-name dialog's button, which clears the saved error beside its own Close (清除), four bot statuses that read as states (已完成, not the button word 完成), the Up next dismiss (忽略), and the webhook's Checks label, which names its signature checks (验证).Why
These strings never reached the catalog, or were glued together in code, so translating catalog values alone could not fix them.
SOUL.md keeps the template's English for untouched lines because it is the bot's standing instructions: writing a translation would change what every template user gets and mix languages with its English skeleton (
## How I work,## Never). Owners who edit still get their own words.Creating under the English name and then renaming keeps the folder and the Linear/GitHub handle readable (
botFolderNamekeeps ASCII only, so a Chinese name becomesbot), and it uses the existing rename path, which older paired hosts already support. The alternative, a new create parameter for a separate display name, would be silently dropped by older hosts.Hash keys keep translations out of the template catalog, which is shared by main, renderer and phone and is partly agent-facing.
条目 and 项目 read like machine translation to Chinese readers, and 项目 collides with Project in the GitHub and Linear views; 事项 is the everyday word for a piece of work to follow up on.
Linked Issue
Part of #32207, the localization issue; this PR covers Simplified Chinese, and other locales stay tracked there. Builds on #43011 and #43012.
Visual Proof
Simplified Chinese UI rendered through component fixtures (headless Chrome in a zh-CN locale, light theme), before (upstream main) and after this branch:
bots/NewBotDialog:template)bots/settings-view/BotSettingsView:root)bots/settings-view/BotSettingsView:lookAround)"From Support triage" in the New bot fixture and the bot name "Bot builder" in the settings fixture are the fixtures' sample data, so they show as written.
Testing
ORCA_CODE_QUALITY_BASE=upstream/main pnpm check:changed: all 40 checks pass (localization catalogs, coverage and extraction, mobile localization, protected copy, typecheck, lint, ratchets, unit tests).The mobile-web render tests for the phone's bot sheet, access requests and look-around pass.
Desktop typecheck (
pnpm tc) and the mobile typecheck.A temporary component test (not committed, per the test policy) confirmed that an untouched template sends English create params and then renames to the shown name, and that an edited name or line is saved as typed.
Manually tested in Simplified Chinese on macOS in a local arm64 build carrying these changes before upstream's identity box landed: template browser, New bot (untouched and edited fields), Bots settings. The identity-box version is covered by the fixtures above and typecheck. The phone changes were checked by typecheck and the tests above, not on a device.
I manually tested these changes locally
Automated tests added/updated, or explained why not below
Every added test fails without this change and avoids the test anti-patterns
No new tests: the catalog checks cover keys, placeholders and coverage, and the create-and-rename flow was verified with the temporary test above.
Performance
None, because the added work is catalog lookups when Bots views render (one 32-bit hash per template line shown) and one rename call after a bot is created from a template in a translated UI; nothing new polls, runs on startup, or touches disk or IPC.
Risk
Level: Low
AI Disclosure
Prepared with help from an AI coding assistant (code changes, translations and checks). I reviewed the changes and tested the result.
Review
Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance
Checklist
N/Awith reasonbots.updatepnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred): lint, typecheck and the affected tests ran throughcheck:changed; the build is left to CI