Repository navigation
fix(i18n): correct zh values that misread the English - #50431
Conversation
|
Important Review skippedReview was skipped as selected files did not have any reviewable changes.
|
stablyai#50431 rewrites these two fragments, so keep them as on main here to avoid a conflict.
Reword desktop and mobile zh catalog values that followed the English too literally or used a word the app reserves for something else (for example 运行 -> 运行设置, 代码 -> 错误代码, Fork 头 -> Fork 中的源分支), keep product names such as iOS, Android and Bots untranslated, and align terms with the rest of the zh catalog (账户, 评审人, 智能体). Quotes stay as the catalog's “ ” form. Refs stablyai#32207 Co-authored-by: Neil <[email protected]>
e79292c to
7064fd0
Compare
stablyai#50431 put "the agent in" back into the worktree X tip. Use the same value in the zh override so a later catalog repair keeps it.
ELI5
Some Simplified Chinese (zh) strings in Orca were translated too literally, or used a word that means something else elsewhere in the app. A Chinese reader could take them the wrong way. For example, "Runs" meant the run settings but showed as 运行 ("run"). This PR rewords only those strings. Nothing changes for English users.
What Changed
The values change in
src/renderer/src/i18n/locales/zh.json(49 desktop strings) andmobile/src/i18n/locales/zh.json(7 phone strings). No keys, placeholders or new strings were added, and no other locale changes.NEVER_TRANSLATE_VALUES)The remaining rows reword phrases the same way and align terms with the rest of the zh catalog (令牌, 密钥, 议题, 智能体, 工作树). They keep the catalog's “ ” quotes.
Why
NEVER_TRANSLATE_VALUESrule.Linked Issue
Refs #32207 (localization). This covers part of the zh wording work, so it does not close the issue.
Visual Proof
Screenshots from the original PR. Neither screen was touched by the later quote/CLI-tip follow-up.
Testing
Squashed onto current
mainwith no conflicts. The changed lines match the reviewed diff exactly.bun config/scripts/localization/catalog-validation/verify-localization-catalogs.mjspasses: zh.json has 24643 verified entries, with keys, placeholders and coverage intact.bun config/scripts/localization/catalog-validation/verify-mobile-localization.mjspasses: 6657 verified zh entries.vitest run config/scripts/localization/catalog-validation/protected-copy-keys.test.mjspasses.oxfmt --check,ast-grep scanand the changed-code quality gate all pass on the touched files.Platforms: the change is JSON catalog values only, so it behaves the same on macOS, Linux, Windows and SSH.
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 were added. The change is catalog values only, and the existing localization verifiers already check keys, placeholders and coverage.
Performance
None. Only the text of existing zh strings changes, and catalog size moves by a few bytes. No new code runs at startup, during rendering, while polling, or over IPC.
Risk
Level: Low
Agent skill upstream boundary
Notes
Original fix by @x-Ai in #50431, plus a small maintainer follow-up that restores the “ ” quotes and the agent wording in the worktree CLI tip. Authorship is kept on the squashed commit.
Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance