Skip to content

fix(i18n): translate remaining Simplified Chinese settings copy - #66374

Open
sweetbamboo wants to merge 6 commits into
anomalyco:devfrom
sweetbamboo:zh-settings-copy
Open

sweetbamboo wants to merge 6 commits into
anomalyco:devfrom
sweetbamboo:zh-settings-copy

Conversation

@sweetbamboo

@sweetbamboo sweetbamboo commented Nov 25, 2026 •

Copy link
Copy Markdown

Issue for this PR

Closes #66373

Type of change

  • Bug fix

What does this PR do?

Translates the remaining Settings copy shown in the issue:

  • General: Help & feedback, Keep side panel open across sessions, Submit question answers with, Keep running in the background
  • General (Linux only): Smooth scrolling
  • Timeline: Wrap code blocks
  • Experimental: Tab groups, New question UI
  • Pairing: the full Settings page, including its lazy zh catalog
  • Browser: the main page and the Advanced section
  • Timeline Shell category: 壳牌 → Shell 命令, matching the existing ui.promptInput.shell term
  • Timeline subagent label: 子代理 → 子智能体, 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.ts and zht are 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?

  • Ran the dev web and desktop apps with Simplified Chinese and checked the Settings pages
  • bun run check: 37/37
  • pairing plugin tests: 40 pass / 0 fail
  • app i18n test: 3 pass / 0 fail
  • lint:changed, Prettier, and git diff --check pass
  • script/sdk-docs.ts passes

Screenshots / recordings

General

Before: General settings before

After: General settings after

Timeline

Before: Timeline settings before

After: Timeline settings after

Timeline subagent label

Before: Timeline subagent label before

After: Timeline subagent label after

Experimental

Before: Experimental settings before

After: Experimental settings after

Pairing

Before: Pairing settings before

After: Pairing settings after

Browser

Before: Browser settings before

After: Browser settings after

Browser Advanced

Before: Browser Advanced settings before

After: Browser Advanced settings after

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

Added by the opencode bot (AI-generated).

Related: #51868

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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 zh catalogs exists in the matching en catalog. The new Pairing catalog covers all of its English keys, and {{time}} is kept.
  • Wiring Pairing through builtinCatalog with a lazily loaded zh matches 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.ts passes).
  • Type checks for gui-plugins and app, 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.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@sweetbamboo

Copy link
Copy Markdown
Author

Follow-up commit ae35b2fc: the Timeline category row and the Details preset description still used 子代理, while the Compact/Quiet descriptions on the same page and the rest of the Simplified Chinese UI use 子智能体. Changed both to 子智能体 so one screen no longer shows two translations for the same thing.

Before/after screenshots are in the PR description under "Timeline subagent label".

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@sweetbamboo

Copy link
Copy Markdown
Author

Follow-up commit 54771fa5: dev added the settings.general.row.questionSubmitKey row, but the zh catalog had no title or description, so it fell back to English. Added both:

  • 提交问题答案的按键
  • 用于前往下一个问题或提交答案的按键。{{keybind}} 可选择答案,或在自定义答案中换行。

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.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@sweetbamboo

Copy link
Copy Markdown
Author

Checked every screenshot against the current head and refreshed the stale ones:

  • Timeline after still showed 子代理; recaptured it with 子智能体, and refreshed the before image in the same framing (before: 壳牌 / 子代理, after: Shell 命令 / 子智能体).
  • Experimental after still showed the old 新版问题界面 / 预览以键盘操作为主的问题面板 row. dev renamed these keys to questionComposer, so the current build had fallen back to English. Added the new copy (新版问题界面 / 在输入框中回答问题) and recaptured the pair.
  • Also added the new Keep running in the background and Linux-only Smooth scrolling General rows, and refreshed General to include Keep running in the background.

The updated bullets and image links are in the PR description.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@sweetbamboo

Copy link
Copy Markdown
Author

Follow-up commit dc80e56f: translated the Browser Advanced section. It now covers remote sign-ins, automatic page opening, cookie file import, site permissions, browser data, the clear-data dialog and its errors.

Before/after screenshots for the expanded section are in the PR description under "Browser Advanced" (before: English fallback; after: Simplified Chinese).

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.
@sweetbamboo

Copy link
Copy Markdown
Author

Dropped the unrelated README table reflow. The only README change left is the Pairing example, which has to match src/pairing/index.ts; script/sdk-docs.ts still passes. The table whitespace was just what Prettier produced and is not needed for this fix.

@opencodejr opencodejr Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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.

This branch has not been deployed

No deployments
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.

desktop: remaining untranslated Simplified Chinese settings copy

1 participant