Repository navigation
fix(i18n): translate 229 missing Simplified Chinese UI strings - #34478
Conversation
Complete the zh-CN catalog for recently added surfaces: browser history, agent permission settings, worktree/workspace management, cookie import toasts, SSH host server dialogs and source-control dropdown states. Terminology follows the existing catalog. 11 status-bar credit/balance keys stay untranslated on purpose: provider-credit-balance-locales.test.ts keeps target catalogs sparse and interpolates English copy at runtime. Fixes stablyai#34439
|
No actionable comments were generated in the recent review.
|
There was a problem hiding this comment.
Actionable comments posted: 1

Review info
-
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:
46c2ea01-ddfc-4523-a974-ce31b23d0eb2
Files selected for processing: 1-
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.
-
# Conflicts: # src/renderer/src/i18n/locales/zh.json
…orkspace sleep wording Add zh translations for the 83 English keys added since this branch was cut (browser extensions, experimental pane, blocked-page load failure), leaving the sparse status-bar balance keys untranslated as required. Use 休眠 consistently for workspace sleep in the sidebar and terminal close dialog.
|
Thanks @Aboysky! I pushed maintainer edits so this can land:
Validation passed: Refs #10514 |
# Conflicts: # src/renderer/src/i18n/locales/zh.json
* fix(i18n): translate missing ko/ja/es/fr/pt UI strings Fill every en.json key missing from the ko, ja, es, fr and pt catalogs (293 ko/es/fr, 244 ja, 316 pt leaves; purely additive). The provider credit-balance status-bar keys stay sparse per provider-credit-balance-locales.test.ts, and zh is left to #34478. Also list Français and Português (Brasil) in the Settings docs. Closes #34513 * fix(i18n): keep goal-change failure wording in English until reviewed --------- Co-authored-by: OrcaWin <[email protected]>
ELI5
Orca's interface speaks Simplified Chinese, but 229 of its newest screens and messages were still coming up in English for Chinese users — the agent permission settings, worktree management messages, cookie import errors, SSH host dialogs and more. This PR translates all of them, using the same wording the rest of the Chinese interface already uses.
What Changed
Only
src/renderer/src/i18n/locales/zh.json: 229 catalog keys added, no code changes, no existing translations modified.Main areas covered:
settings.agents.permission*, 31 keys)browser.history.*, 20 keys)Every
{{placeholder}}matches the English source (validated mechanically), and terminology follows the existing catalog (智能体, 工作区, 工作树, 主机, 替我批准, 检出, 变基, 议题). Brand and product names (Claude, Linear, GitHub, Zen, Esc/Enter) stay in Latin script, as elsewhere in the catalog.11 status-bar credit/balance keys (
auto.components.status.bar.*) are deliberately not translated:provider-credit-balance-locales.test.tsrequires target catalogs to stay sparse there and interpolates English copy at runtime.Why
Fixes #34439. Recently added features have outpaced the zh-CN catalog, so zh-CN users get mixed-language UI in exactly those new surfaces. i18next falls back to English for missing keys, so completing the catalog is a pure data change with no behavior risk.
Visual Proof
Before/after of Settings → Agents (UI language set to 中文(简体)) — the Permissions section header and description fell back to English on
mainand are localized after this change:Before: header shows
Permissions, description showsWhat every agent may do without asking….After: header shows
权限, description shows每个智能体无需询问即可执行的操作。….Testing
Script validation: JSON parses; zh has 17,384 keys vs en's 17,395 — the only 11 missing are the sparse-catalog balance keys above (same as es/fr/ja/ko); no existing zh value changed; every
{{placeholder}}set identical to the English sourcepnpm test src/renderer/src/i18n --maxWorkers=2— 60/60 pass (this is where the sparse-catalog rule was caught and honored)pnpm test:changed src/renderer/src/i18n --maxWorkers=2— passManual: ran
ORCA_BACKGROUND_LAUNCH=1 pnpm devon macOS, set language to 中文(简体), walked Settings → Agents and verified the permission copy renders in Chinese; re-ran the same flow onmain's catalog to confirm the English fallbackNo new automated test: catalog content is translation data; the existing i18n suites cover fallback behavior and key parity was verified mechanically
I manually tested these changes locally
Automated tests added/updated, or explained why not below
AI Disclosure
Translations were drafted with AI assistance (GLM by Z.ai) and reviewed by the author, a native Simplified Chinese speaker.
Review
{{agent}}placeholders unchanged.Agent skill upstream boundary
Notes
No issues in security, cross-platform support, remote SSH, mobile, backwards compatibility, or performance — data-only change to one locale catalog.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)