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 2,180 missing Traditional Chinese desktop strings for Bots and recent features - #51392
With Orca set to 繁體中文, the desktop app still showed English inside the Bots screens and some other recent features. This PR adds the Traditional Chinese text for those 2,180 strings.
What Changed
Before: 2,180 keys in en.json had no value in src/renderer/src/i18n/locales/zh-Hant.json, so i18next fell back to English inside otherwise Traditional Chinese screens. By area: bot connections (webhooks, Composio, Google, Slack, GitHub, Linear, apps) 801, Bots screens (list, items, chats, new bot, import, activity) 591, bot sharing, access, groups and hosts 322, Settings → Bots 244, other recent strings (artifacts, emulator, Jira filters, shortcuts, native chat) 101, automation bot target and events 65, browser annotate palette, toolbar and cookie import 52, feature tips 4.
After: each of those keys has a Traditional Chinese value. Wording follows what zh-Hant.json and the mobile catalog already use for the same English. A bot is 「機器人」 in running text. Product names (Orca, Slack, Google, GitHub, Linear, Composio, MCP), code and file names are left as is. A follow-up commit tightened some Bots wording.
Mechanism: new leaves in zh-Hant.json only. No existing value changes; the 42 removed lines just gain a trailing comma. English, code and other locales are untouched. Chinese uses only the other plural form, so English _one keys are not added.
Why
These strings show up inside Traditional Chinese screens, so each English line stands out. This is the Traditional Chinese part of a per-language set of desktop catalog PRs; each one touches only its own locale file. The built-in bot template and skill strings (bots.templates, bots.templateSkills) are left for #47391.
N/A: this changes catalog text only, with no layout or code change. Sample keys rendered with i18next t() from the main catalog vs this branch, app language 繁體中文:
Key
main
This PR
sidebar.botsSplit.resize
Resize bots and projects
調整機器人與專案的大小
browser.cookieImport.notice.importedCount
Imported 3 cookies
已匯入 3 個 Cookie
settings.bots.fileChangedOnDisk
notes.md changed on disk.
notes.md 已在磁碟上變更。
bots.row.deleteTitle
Delete Helper?
要刪除 Helper 嗎?
bots.slack.setup.checking
Checking Slack…
正在檢查 Slack…
browser.toolbar.annotateModeWithShortcut
Annotate, grab or draw (⌘⇧A)
標註、擷取或繪圖(⌘⇧A)
Testing
I manually tested these changes locally: not opened in the app; the catalog verifiers below cover placeholders, tags, glossary terms and plural forms.
Automated tests added/updated, or explained why not below: no tests added, because only catalog values are added and the existing catalog verifiers check them.
Every added test fails without this change and avoids the test anti-patterns: no tests added.
Run on macOS against main at c78d85c1a43b. The change was squashed onto that base, and its +/- lines match the reviewed PR head (a9afde9276b3) exactly:
pnpm verify:localization-catalogs passes (zh-Hant coverage is now 24443/25122; the remaining keys are template/skill strings and keys added to en.json later).
pnpm verify:localization-protected-copy passes.
JSON.parse and oxfmt --check on zh-Hant.json pass.
The branch merges cleanly with the latest main (140e539e2ffc).
Performance
None: the change only grows the Traditional Chinese catalog, from 1.49 MB to 1.62 MB. The renderer fetches that file by URL (zh-Hant.json?url in i18n.ts) only when Traditional Chinese is selected. Measured JSON.parse of the whole catalog: 2.64 ms before, 2.80 ms after, a one-time cost at language load. No hot path, polling, IPC or per-item work changes.
Risk
Level: Low
Only Traditional Chinese text is added. If a word is wrong, Traditional Chinese users see that word instead of English. A plain revert backs it out.
Review
Original fix by @yohangwak in #51392, squashed onto current main with a small wording polish. Authorship is preserved.
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. Catalog-only change: it works the same on every platform and over SSH, and does not touch the mobile catalog.
Checklist
This PR is small and focused
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)
pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)
Review was skipped as selected files did not have any reviewable changes.
Run configuration
Source mode: Auto
Repository: Unavailable
Branch: Unavailable
File: No configuration file from this repository applied
Commit: Unavailable
Layers: Repository UI
Review profile: CHILL
Plan: Advanced
Run ID: 995ad6eb-4c26-49c2-a7e4-5156ca6d1e8f
Commits
Reviewing files that changed from the base of the PR and between a9afde9 and d677502.
You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.
Use the checkbox below for a quick retry:
Trigger review
No actionable comments were generated in the recent review.
Walkthrough
The Traditional Chinese locale adds and expands translations for shared interface controls, artifact filtering and deletion, bot setup and access, connected services, bot activity, and automation workflows.
Severity of issue fixed: Medium
Merge Risk: Minimal · previous review a9afd
This change adds Traditional Chinese text for Bot screens and other recent features, so users no longer see English fallback text there. It touches only the locale catalog, existing translations are unchanged, and it is easy to revert. No merge-blocking risk was found.
Pre-merge checks: 3 · 1
Failed checks: 1 inconclusive
Check name
Status
Explanation
Resolution
Linked Issues check
Issue #51402 requires Traditional Chinese values for 2,180 missing keys in src/renderer/src/i18n/locales/zh-Hant.json, grouped by area, with the 272 template and skill keys excluded (assigned to #4739…
Provide a readable whole-PR diff of zh-Hant.json (mergeBase ab26af3 to head a9afde9), or a key-level comparison of en.json and zh-Hant.json at head. The comparison must show that every en.json leaf in the eight listed areas has a …
Passed checks: 3 passed
Check name
Status
Explanation
Title check
The title names the main change: Traditional Chinese (zh-Hant) desktop i18n strings are added for Bots and recent features. It is specific and matches the raw summary and PR objectives. The title uses…
Description check
The description follows the template closely. It covers ELI5, What Changed (before and after, with mechanism), Why, Linked Issue (Fixes #51402), Visual Proof (N/A with reason and a before/after table …
Out of Scope Changes check
The reported change set is limited to src/renderer/src/i18n/locales/zh-Hant.json. The raw summary lists its content as Traditional Chinese strings for browser annotation and cookie import, bot setup a…
Full details: Title check
Explanation
The title names the main change: Traditional Chinese (zh-Hant) desktop i18n strings are added for Bots and recent features. It is specific and matches the raw summary and PR objectives. The title uses a 'fix(i18n):' prefix and a long count-heavy phrase, but the subject is clear.
Full details: Description check
Explanation
The description follows the template closely. It covers ELI5, What Changed (before and after, with mechanism), Why, Linked Issue (Fixes #51402), Visual Proof (N/A with reason and a before/after table of i18next output), Testing, Performance, Risk (Low, with revert method), AI Disclosure, Review, Agent skill boundary, and the Checklist. Minor gaps: the Testing section says the change was not manually run in the app, and the Performance answer is a single line as the template asks. The Visual Proof N/A is supported by the table, so the check passes.
Full details: Out of Scope Changes check
Explanation
The reported change set is limited to src/renderer/src/i18n/locales/zh-Hant.json. The raw summary lists its content as Traditional Chinese strings for browser annotation and cookie import, bot setup and management, automation, artifacts, simulator and workspace controls, and Home Chat. These areas match the areas listed in #51402. No unrelated code, configuration, or other locale file change appears in the supplied evidence. The possible change to existing values noted in the summary is still a catalog text change within the same issue scope. This conclusion rests on the summary, because the whole-PR diff was unavailable.
Full details: Linked Issues check
Explanation
Issue #51402 requires Traditional Chinese values for 2,180 missing keys in src/renderer/src/i18n/locales/zh-Hant.json, grouped by area, with the 272 template and skill keys excluded (assigned to #47391). The head file is readable. A sampled key, sidebar.botsSplit.resize, has the value "調整機器人與專案的大小", which matches the PR description. Other sampled values in the head file (for example csv.* and sidebar.wslMoved.*) are Traditional Chinese. The whole-PR diff for zh-Hant.json was unavailable because changed blobs are missing from the checkout. The coverage of all 2,180 keys, the absence of existing value changes, and the exclusion of the 272 template keys cannot be confirmed from the evidence. The raw summary also reports that existing strings were extended with new placeholders, which conflicts with the PR claim that no existing value changes. The author's localization check results are reported but not independently verified here.
Resolution
Provide a readable whole-PR diff of zh-Hant.json (mergeBase ab26af3 to head a9afde9), or a key-level comparison of en.json and zh-Hant.json at head. The comparison must show that every en.json leaf in the eight listed areas has a non-empty zh-Hant value, that the 272 bots.templates and bots.templateSkills keys are not required, and whether any pre-existing zh-Hant value changed.
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: 105e098f-c969-4c43-9dd5-9f965b3b3b97
Commits
Reviewing files that changed from the base of the PR and between c6ce1aa and a9afde9.
Files selected for processing: 1
src/renderer/src/i18n/locales/zh-Hant.json
Files skipped from review as they are similar to previous changes: 1
src/renderer/src/i18n/locales/zh-Hant.json
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
…Bots and recent features
Add zh-Hant values for 2,180 desktop catalog keys that fell back to
English: bot connections, Bots screens, bot sharing and access,
Settings > Bots, automation bot targets, browser annotate and cookie
import, feature tips and other recent strings. Existing values are
unchanged; placeholders, tags and product names are preserved.
Fixesstablyai#51402
Co-authored-by: Neil <[email protected]>
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 繁體中文, the desktop app still showed English inside the Bots screens and some other recent features. This PR adds the Traditional Chinese text for those 2,180 strings.
What Changed
en.jsonhad no value insrc/renderer/src/i18n/locales/zh-Hant.json, so i18next fell back to English inside otherwise Traditional Chinese screens. By area: bot connections (webhooks, Composio, Google, Slack, GitHub, Linear, apps) 801, Bots screens (list, items, chats, new bot, import, activity) 591, bot sharing, access, groups and hosts 322, Settings → Bots 244, other recent strings (artifacts, emulator, Jira filters, shortcuts, native chat) 101, automation bot target and events 65, browser annotate palette, toolbar and cookie import 52, feature tips 4.zh-Hant.jsonand the mobile catalog already use for the same English. A bot is 「機器人」 in running text. Product names (Orca, Slack, Google, GitHub, Linear, Composio, MCP), code and file names are left as is. A follow-up commit tightened some Bots wording.zh-Hant.jsononly. No existing value changes; the 42 removed lines just gain a trailing comma. English, code and other locales are untouched. Chinese uses only theotherplural form, so English_onekeys are not added.Why
These strings show up inside Traditional Chinese screens, so each English line stands out. This is the Traditional Chinese part of a per-language set of desktop catalog PRs; each one touches only its own locale file. The built-in bot template and skill strings (
bots.templates,bots.templateSkills) are left for #47391.Linked Issue
Fixes #51402
Visual Proof
N/A: this changes catalog text only, with no layout or code change. Sample keys rendered with i18next
t()from themaincatalog vs this branch, app language 繁體中文:mainsidebar.botsSplit.resizebrowser.cookieImport.notice.importedCountsettings.bots.fileChangedOnDiskbots.row.deleteTitlebots.slack.setup.checkingbrowser.toolbar.annotateModeWithShortcutTesting
Run on macOS against
mainatc78d85c1a43b. The change was squashed onto that base, and its +/- lines match the reviewed PR head (a9afde9276b3) exactly:pnpm verify:localization-catalogspasses (zh-Hant coverage is now 24443/25122; the remaining keys are template/skill strings and keys added toen.jsonlater).pnpm verify:localization-protected-copypasses.JSON.parseandoxfmt --checkonzh-Hant.jsonpass.main(140e539e2ffc).Performance
None: the change only grows the Traditional Chinese catalog, from 1.49 MB to 1.62 MB. The renderer fetches that file by URL (
zh-Hant.json?urlini18n.ts) only when Traditional Chinese is selected. MeasuredJSON.parseof the whole catalog: 2.64 ms before, 2.80 ms after, a one-time cost at language load. No hot path, polling, IPC or per-item work changes.Risk
Level: Low
Only Traditional Chinese text is added. If a word is wrong, Traditional Chinese users see that word instead of English. A plain revert backs it out.
Review
Original fix by @yohangwak in #51392, squashed onto current
mainwith a small wording polish. Authorship is preserved.Agent skill upstream boundary
Notes
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance. Catalog-only change: it works the same on every platform and over SSH, and does not touch the mobile catalog.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)