Repository navigation
fix(i18n): translate the missing Simplified Chinese desktop and phone strings - #50430
Conversation
|
Note Reviews pausedIt looks like this branch is under active development. To avoid overwhelming you with review comments due to an influx of new commits, CodeRabbit has automatically paused this review. You can configure this behavior by changing the
Use the following commands to manage reviews:
Use the checkboxes below for quick actions:
No actionable comments were generated in the recent review. Walkthrough
Merge Risk:
|
Translate the desktop and mobile strings that had no zh value yet (browser annotate palette, grab and cookie-import toasts, browser extension errors, Browser Use team notice, phone MCP servers, bots, chat, browser and automation screens). Existing zh values are kept as main has them, apart from small wording tidy-ups on the same keys. Refs stablyai#32207 Co-authored-by: Neil <[email protected]>
4d13c71 to
95fd287
Compare
Per-key merge of the phone zh catalog: the seven values corrected upstream sit next to this branch's added lines, and both sets are kept as written.
Added upstream after this branch was cut. It uses the catalog's 话题 for thread and the wording of the neighbouring host-update notices.
|
@nwparker Thank you so much for stepping in and editing this branch yourself. Squashing it onto It is up to date with When you have a moment, could you merge this one? With it every string in the zh catalogs has a Chinese value (only the |
…ttlement Pinned OMB patch layer. base: d2efe67 (stablyai/orca stablyai#50430). Patch artifact sha256: b3697584ac76ea185c5d6f5d06e32d1d2e94e2aa46282e6b7d8d365c05384de7. Validated as artifactVersion 1.4.214 (OMB smoke: approval RPC 1, boundary exec 1, residual 0).
ELI5
Some newer Orca screens were added without Simplified Chinese text, so people using Chinese still saw English there. This PR adds the missing Chinese text for the desktop app and the phone app. English and the other languages stay the same.
What Changed
zhvalues tosrc/renderer/src/i18n/locales/zh.json(62 desktop strings) andmobile/src/i18n/locales/zh.json(300 phone strings). A few existingzhvalues for the same strings were reworded: quote style, the palette position labels, page-load wording, and "already open on the other computer" for the browser session notice. No code, keys or placeholders change.Why
These screens were built after the last zh pass, so they fell back to English. The new values use the words the catalog already uses (注释 / 抓取 / 绘制 / 标注, 请求头, MCP 服务器, 账户) and its existing conventions: no trailing 。, ASCII quotes, and 你.
Linked Issue
Refs #32207. This is part of the localization work, and other locales are still in progress.
Visual Proof
Simplified Chinese, rendered through component fixtures by @x-Ai (headless Chrome, zh-CN, light, 2x). Left is
main, right is this branch. Maintainer follow-up commits only reworded a few strings, so these renders still show the change.main)Testing
pnpm verify:localization-catalogsandpnpm verify:localization-catalogpass. Placeholders and keys match English, and desktop zh is at 24705/25080.pnpm verify:mobile-localizationpasses: phone zh is at 6957/6957, with 7386 call sites verified.pnpm verify:localization-protected-copypasses.oxfmt --checkpasses on both catalogs, and both files parse as valid JSON.I squashed the branch onto current
mainand checked that the changed lines match the reviewed diff exactly.Platforms: this is catalog data only, so it is 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. This change only edits catalog values, and the localization verifiers above already check keys, placeholders and coverage.
Performance
None. Only catalog strings change, and nothing new runs, polls, or touches disk or IPC. The desktop zh catalog grows by about 3 KB (0.2% of 1.59 MB) and the phone one by about 15 KB (to 407 KB). The median
JSON.parsetime, measured over 200 interleaved runs, did not change: desktop went from 3.18 ms to 3.09 ms and phone from 0.82 ms to 0.76 ms.Risk
Level: Low
zhvalues change. English and the other locales are untouched.Agent skill upstream boundary
Notes
Original fix by @x-Ai in #50430. Authorship is kept on the commit, and the maintainer follow-up wording fixes were squashed in.