Repository navigation
fix(i18n): translate remaining Simplified Chinese settings copy - #66374
sweetbamboo wants to merge 6 commits into
Conversation
There was a problem hiding this comment.
The change looks sound. I checked it statically and with tests, not visually: these Settings pages are in the desktop/web app, which I couldn't run here, so your before/after screenshots are the visual evidence.
- Every new key in the app, Browser and Pairing
zhcatalogs exists in the matchingencatalog. The new Pairing catalog covers all of its English keys, and{{time}}is kept. - Wiring Pairing through
builtinCatalogwith a lazily loadedzhmatches the other built-ins (ssh, file, review, updater, debug). - The README table reflow is justified: the base file fails Prettier, and the Pairing snippet matches its source (
script/sdk-docs.tspasses). - Type checks for
gui-pluginsandapp, the Pairing tests and the app i18n tests all pass.
Public API: unchanged (translation catalogs and a built-in plugin's internal i18n setup only).
Heads-up: #65049 adds the same seven app keys with different wording, and #65415 adds a larger Browser zh set to the same file. Whichever lands first will conflict with the others, and maintainers may want to pick one wording. The Pairing catalog is only in this PR.
Related: #51868
Translates the General, Timeline, Experimental, Pairing, and Browser settings surfaces, and uses the existing Shell 命令 term for the timeline Shell category.
8096687 to
b3c3a74
Compare
There was a problem hiding this comment.
The new push only rebases onto newer dev. The PR's own changes are identical to the commit I reviewed before, and none of the added keys clash with what dev has gained since. On the new head, type checks for gui-plugins and app, the Pairing tests, the app i18n tests and script/sdk-docs.ts all pass. As before, I didn't check the Settings pages visually; your screenshots cover that.
Public API: unchanged.
No new concerns.
The Timeline category row and the Details preset description used 子代理, while the rest of the Simplified Chinese UI (session activity, sidebar, permissions) and the Compact/Quiet descriptions use 子智能体. Align the Timeline settings with that existing term so one screen no longer shows both translations.
|
Follow-up commit Before/after screenshots are in the PR description under "Timeline subagent label". |
There was a problem hiding this comment.
The new commit makes the Timeline subagents label and the Details preset description use 子智能体. The Simplified Chinese catalog now has no 子代理 left, so the term is the same across the app. The app i18n tests still pass. As before, I didn't check the Settings pages visually; your screenshots cover that.
Public API: unchanged.
No new concerns.
The new settings.general.row.questionSubmitKey row had no Simplified Chinese copy, so the General page fell back to English for its title and description. Add both keys and refresh the General screenshots to include the new row.
|
Follow-up commit
I also refreshed the existing General before/after screenshots so they include this row, rather than leaving the old ones without it. The refreshed pair is under "General" in the PR description. |
There was a problem hiding this comment.
The new commit adds Simplified Chinese text for the question submit key setting. Both new keys exist in the English catalog, each is added once, and the description keeps the {{keybind}} placeholder that general.tsx fills in. The app type check and i18n tests still pass. As before, I didn't check the Settings pages visually; your refreshed General screenshots cover that.
Public API: unchanged.
No new concerns.
Covers the settings added on dev after the issue was filed: Keep running in the background, Smooth scrolling (Linux), and the renamed New question UI row. The Experimental screenshots are refreshed because the old pair still showed the previous row text.
|
Checked every screenshot against the current head and refreshed the stale ones:
The updated bullets and image links are in the PR description. |
There was a problem hiding this comment.
The new commit adds Simplified Chinese text for the Keep running in the background, Smooth scrolling and New question UI rows. All six keys exist in the English catalog and are added once, and the wording matches the English, including the restart note and that turning it off also stops the CLI. The app type check and i18n tests still pass. As before, I didn't check the Settings pages visually; your refreshed General and Experimental screenshots cover that.
Public API: unchanged.
No new concerns.
The Advanced section still fell back to English for remote sign-ins, automatic pages, cookie import, site permissions, and browser data. Add the Simplified Chinese copy, keeping the existing placeholders.
|
Follow-up commit Before/after screenshots for the expanded section are in the PR description under "Browser Advanced" (before: English fallback; after: Simplified Chinese). |
There was a problem hiding this comment.
The new commit translates the Browser Advanced section. All 33 keys exist in the English Browser catalog, each is added once, and the {{site}}, {{permission}} and {{count}} placeholders are kept. The gui-plugins type check passes. The browser tests have the same failures before and after this commit (Electron and storage tests that can't run here), so the commit didn't cause them. As before, I didn't check the Settings pages visually; your Browser Advanced screenshots cover that.
Public API: unchanged.
No new concerns. As noted earlier, #65415 adds Browser zh strings to the same file, so whichever merges second will conflict.
Only the Pairing example needs to match src/pairing/index.ts. The rest of the table was Prettier whitespace, not part of this fix.
|
Dropped the unrelated README table reflow. The only README change left is the Pairing example, which has to match |
There was a problem hiding this comment.
The new commit drops the README table reflow, so the README change is now just the Pairing snippet. The snippet still matches its source (script/sdk-docs.ts passes). Prettier flags this README again, but it does the same on the base and the latest dev, so this change doesn't make it worse.
Public API: unchanged.
No new concerns.
Issue for this PR
Closes #66373
Type of change
What does this PR do?
Translates the remaining Settings copy shown in the issue:
Help & feedback,Keep side panel open across sessions,Submit question answers with,Keep running in the backgroundSmooth scrollingWrap code blocksTab groups,New question UIzhcatalog壳牌→Shell 命令, matching the existingui.promptInput.shellterm子代理→子智能体, matching the term already used in session activity, the sidebar, permission descriptions, and the Compact/Quiet timeline descriptions. The category row and the Details preset description were the only places still using子代理, so the same screen showed both translations.Scope is Settings only.
en.tsandzhtare unchanged, and no behavior or defaults change. The General and Experimental screenshots were refreshed to include the new rows added on dev after the issue was filed, and the Browser Advanced section is included.How did you verify your code works?
bun run check: 37/37lint:changed, Prettier, andgit diff --checkpassscript/sdk-docs.tspassesScreenshots / recordings
General
Before:
After:
Timeline
Before:
After:
Timeline subagent label
Before:
After:
Experimental
Before:
After:
Pairing
Before:
After:
Browser
Before:
After:
Browser Advanced
Before:
After:
Checklist
Added by the opencode bot (AI-generated).
Related: #51868