Skip to content

fix(i18n): correct zh values that misread the English - #50431

Merged
nwparker merged 1 commit into
stablyai:mainfrom
x-Ai:fix/i18n-zh-wording
Nov 27, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
x-Ai:fix/i18n-zh-wording

Conversation

@x-Ai

@x-Ai x-Ai commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

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) and mobile/src/i18n/locales/zh.json (7 phone strings). No keys, placeholders or new strings were added, and no other locale changes.

Where Before After Why
Source control 不支持 Fork 头 不支持 Fork 中的源分支 the English means a fork's head branch, not a "fork head"
Mobile page badges iOS系统 · 安卓 iOS · Android product names stay untranslated (NEVER_TRANSLATE_VALUES)
Bot runs 运行 运行设置 the run's settings, not "run"
Slack setup problem 代码 错误代码 the error's code
Bot outfits 审阅者 评审人 the word the app uses for the reviewer bot
Signed-out Google account 登录已失效 已被 Google 退出登录 says who signed the account out
Google sign-in 添加另一个账号 / 粘贴代码 添加另一个账户 / 粘贴授权码 账户 is the app's term, and the value is an auth code
Bots disabled 你的团队已关闭 bots。 你的团队已关闭 Bots the product name keeps its capital
Port forwarding 并非运行在 {{host}} 本身上 并非直接运行在 {{host}} 上 matches "on {{host}} itself"
Worktree CLI tip X 完成后,… X 中的智能体完成后,… the agent finishes, not the worktree
Jira errors 页面令牌 / 页面数量限制 分页令牌 / 分页上限 these are pagination limits

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

  • Each of these strings means something different to a Chinese reader (运行 vs 运行设置, 代码 vs 错误代码, 页面 vs 分页), so this is a correctness fix, not a style change.
  • The badge change follows the existing NEVER_TRANSLATE_VALUES rule.
  • Only the misleading values are touched. The broader punctuation pass is kept out so this diff stays reviewable.

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.

Screen Before (main) After (this PR)
Mobile page › platform badges hero badges on main hero badges with this PR
Settings › Experimental › Shared Codex servers shared codex row on main shared codex row with this PR

Testing

  • Squashed onto current main with no conflicts. The changed lines match the reviewed diff exactly.

  • bun config/scripts/localization/catalog-validation/verify-localization-catalogs.mjs passes: zh.json has 24643 verified entries, with keys, placeholders and coverage intact.

  • bun config/scripts/localization/catalog-validation/verify-mobile-localization.mjs passes: 6657 verified zh entries.

  • vitest run config/scripts/localization/catalog-validation/protected-copy-keys.test.mjs passes.

  • oxfmt --check, ast-grep scan and 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

  • Only zh users see a difference. English and other locales are unchanged.
  • To back it out, do a plain revert.

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

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

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Important

Review skipped

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: a22de597-e1af-42d2-8037-994b9d9a11ea
Commits

Reviewing files that changed from the base of the PR and between e79292c and 7064fd0.

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 pull request revises Chinese locale strings in the mobile and renderer interfaces. The edits clarify or standardize wording for interface labels, integrations, sign-in, workspace guidance, and source-control messages. The summaries report no changes to implementation behavior or public declarations.

Merge Risk: Minimal · previous review e7929

This PR refines Chinese UI wording so some labels no longer read as a different meaning from the English. The English UI and other locales are unchanged, and no application logic changes. Merge-readiness risk is minimal.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title "fix(i18n): correct zh values that misread the English" matches the main change: correcting Chinese locale values that mistranslate or misread the English source. It is specific and follows …
Description check Passed placeholder
Linked Issues check Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check Passed Check skipped because no linked issues were found for this pull request.
Full details: Title check

Explanation

The title "fix(i18n): correct zh values that misread the English" matches the main change: correcting Chinese locale values that mistranslate or misread the English source. It is specific and follows a conventional commit style. It does not list every changed string, which is acceptable.

  • 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.

Share

Recent 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: 70a07627-1bc5-4d62-97f2-5c8f43dea184
Commits

Reviewing files that changed from the base of the PR and between a1eeefb and e79292c.

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.

nwparker added a commit to x-Ai/orca that referenced this pull request Nov 27, 2026
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]>
@nwparker
nwparker force-pushed the fix/i18n-zh-wording branch from e79292c to 7064fd0 Compare November 27, 2026 06:22
@nwparker
nwparker merged commit bf8e993 into stablyai:main Nov 27, 2026
58 checks passed
nwparker added a commit to x-Ai/orca that referenced this pull request Nov 27, 2026
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.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants