Skip to content

fix(i18n): fill Simplified Chinese coverage gaps on desktop and mobile - #43011

Merged
nwparker merged 1 commit into
stablyai:mainfrom
x-Ai:fix/i18n-zh-desktop-mobile-coverage
Nov 16, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
x-Ai:fix/i18n-zh-desktop-mobile-coverage

Conversation

@x-Ai

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

Copy link
Copy Markdown
Contributor

ELI5

People using Orca in Simplified Chinese still saw English in about 1,000 places. On desktop that included workspace cleanup, the MCP servers panel in chat, subagent views, automation runs, worktree cards, Memory Saver, account rename, PR update settings, and the freeze report. On mobile it covered most of the pull request, source control, tasks, agents, and session screens. Counts of exactly one item on mobile, like "1 agent", also stayed in English. This PR adds the missing translations.

What Changed

The change is catalog data in src/renderer/src/i18n/locales/zh.json and mobile/src/i18n/locales/zh.json, plus key overrides in config/scripts/locale-catalog/locale-key-overrides.mjs. No app code changed.

  • Before: about 361 desktop keys and 633 mobile keys had no zh value, so i18next fell back to English. After: they all have Simplified Chinese values. Placeholders, markup, code, and product names are kept, and Agent is translated as 智能体 per the translation policy.
  • Mobile singular counts: mobile code calls plural keys literally as t('key_one') when the count is 1. i18next looks that key up exactly as written, and zh only had key_other, so the lookup fell back to English. This adds the explicitly called _one keys, each with the same value as its _other.
  • Corrections: two browser search keywords translated "cookies" as 曲奇饼, and some archive-script entries used 存档 while the rest of the catalog uses 归档. Both are fixed.
  • Key overrides: the generic value override would turn the worktree cards "New" badge into 新建 ("create") on the next catalog repair. An override keeps it as 新功能, the same as the other "New" badges. Without its own override, an automation's "Active" status, its list group, and enabled external automation jobs would get the generic Active → 当前 ("current"). They are now pinned to 已启用, which pairs with 已暂停 (paused) and the existing 启用 (enabled).
  • Mobile "Start workspace" now uses the same wording as desktop.

Why

Missing values make whole screens fall back to English for zh users. The literal _one calls also showed English for single items even where the plural form was already translated.

Linked Issue

Refs #32207. This covers only the Simplified Chinese catalog. The issue also tracks other locales and strings outside the renderer gate, so it stays open.

Visual Proof

The desktop MCP servers panel in chat, rendered with the zh locale through component fixtures (dark theme).

Before After
before: MCP list in English after: MCP list in Simplified Chinese
before: MCP sign-in in English after: MCP sign-in in Simplified Chinese

Testing

  • Rendered the MCP panel fixtures (grouped list and local sign-in request) in zh before and after the change. Before, the panel showed English (MCP servers, Needs sign-in, Sign in, Reconnect, 70 tools). After, it shows Chinese (MCP 服务器, 需要登录, 登录, 重新连接, 70 个工具, 正在等待浏览器…).
  • verify:localization-catalogs, verify:localization-catalog, and verify:localization-runtime-catalog pass. zh.json coverage is 20202/20656.
  • mobile/src/i18n/mobile-i18n.test.ts and the config/scripts/localization/catalog-validation vitest suites pass.
  • oxfmt --check, the anti-slop and code-quality oxlint configs, ast-grep scan, and check-changed-code-quality are clean on the touched files.
  • The change is catalog data only, so it is platform-independent. Local and SSH workspaces use the same client catalog.

@x-Ai
x-Ai requested a review from brennanb2025 as a code owner November 16, 2026 07:22
@coderabbitai

coderabbitai Bot commented Nov 16, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The change adds Simplified Chinese translations across mobile and renderer interfaces. The additions cover agent and chat features, source control, workspaces, tasks, automation, account settings, and other interface areas. It also revises archive-script and browser-search wording and adds locale-key overrides for the worktree-card badge and automation status labels.

Merge Risk: Minimal · up to 36ca3

This change fills in Simplified Chinese text for desktop and mobile. The worst realistic outcome is awkward or truncated wording in a few controls, and reverting restores the previous English fallbacks. No actionable merge risk remains.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the main change: filling Simplified Chinese translation gaps in the desktop and mobile catalogs. The changeset adds about 1,000 zh translations across both catalogs, plus one key overr…
Description check Passed The description follows the repository template. It covers ELI5, What Changed, Why, Linked Issue, Visual Proof (N/A with reason), Testing, Risk with level, AI Disclosure, Review, the upstream boundary…
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 names the main change: filling Simplified Chinese translation gaps in the desktop and mobile catalogs. The changeset adds about 1,000 zh translations across both catalogs, plus one key override. The title uses the conventional fix(i18n) prefix and is specific enough for a teammate scanning history.

Full details: Description check

Explanation

The description follows the repository template. It covers ELI5, What Changed, Why, Linked Issue, Visual Proof (N/A with reason), Testing, Risk with level, AI Disclosure, Review, the upstream boundary checkbox, Notes, and the checklist. The Linked Issue section cites #32207 as a partial reference, not a 'Fixes #' issue, which the template asks outside contributors to link. The author is not a stablyai team member as shown, so the issue requirement applies. The description also says the issue is only addressed in part. Testing checkboxes are not ticked, and the manual-testing item conflicts with the stated limits (no device check on mobile). These gaps are minor relative to the overall completeness.

  • 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: 6b22f9c6-6b7f-4f1b-946f-512c8e6a572e
Commits

Reviewing files that changed from the base of the PR and between b9b2014 and 36ca3c5.

Files selected for processing: 3

  • config/scripts/locale-catalog/locale-key-overrides.mjs
  • 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.

Add 361 desktop and 633 mobile translations for English keys that still
fell back to English: workspace cleanup, the MCP server panel and sign-in
requests, subagent views, automation runs, worktree cards, Memory Saver,
account rename, PR updates and the freeze report on desktop, and most of
the mobile pull request, source control, tasks, agents and session screens.

Mobile code often calls a plural key literally as t('key_one') when the
count is 1, and i18next looks that key up as written, so zh showed English
for a single item. Add the explicitly called _one keys, each equal to its
_other value.

Also correct two browser search keywords that rendered cookies as 曲奇饼,
and entries that called archive scripts 存档 where the catalog says 归档.
The worktree cards "New" badge keeps 新功能 via a key override, mobile
"Start workspace" matches the desktop wording, and an automation's Active
status and list group read 已启用 (paired with 已暂停) instead of 当前.

Co-authored-by: Neil <[email protected]>
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