Skip to content

fix(i18n): use one zh punctuation, address and quote style - #50432

Merged
nwparker merged 3 commits into
stablyai:mainfrom
x-Ai:fix/i18n-zh-style
Nov 27, 2026
Merged

nwparker merged 3 commits into
stablyai:mainfrom
x-Ai:fix/i18n-zh-style

Conversation

@x-Ai

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

Copy link
Copy Markdown
Contributor

ELI5

Simplified Chinese in Orca used two styles at once. Some lines ended with 。 and some didn't. Some said 您 and some said 你. Some quotes were plain " and some were “ ”. This PR picks the style most of the catalog already uses and applies it everywhere. No wording changes, only punctuation and the form of address.

What Changed

Before, one screen could show 速度快。仅支持英语,英语最准确。 right next to 速度快,仅支持英语. After, the zh catalogs follow one style.

Item Change Desktop Phone
Sentence-final 。 removed at the end of a value 698 268
Form of address 您 becomes 你 176 48
Quotes the remaining ASCII " quotes become “ ” 86 –
Settings › Voice short sentences joined with , so no 。 appears mid-line 17 –
Locale override scripts the zh values in config/scripts/locale-catalog/*-overrides.mjs use the same style 18 values –

How it works: it only edits values in src/renderer/src/i18n/locales/zh.json and mobile/src/i18n/locales/zh.json. The same zh values are also changed in the override scripts, so running sync:localization-catalog keeps the new style and doesn't put the old one back.

Exceptions

  • Three phone fragments keep their final 。 because code puts another sentence after them: settings.notificationDisplayTest.{unsupportedHost,noToken,registrationPending}.
  • Command and JSON literals keep ASCII quotes, e.g. "gh auth login" and "scripts".
  • The iOS permission strings stay as they are on main.
  • zh-Hant is untouched, since Traditional Chinese has its own style.

Examples

Where main This PR
Voice model 速度快。仅支持英语,英语最准确。 速度快,仅支持英语,英语识别最准确
Voice language 你说的语言。{{model}} 会自动识别。 你说的语言,{{model}} 会自动识别
Session search tip 您的代理也可以搜索 你的代理也可以搜索
Help menu 如果您仍需要诊断,请在重试后使用"帮助"菜单 如果你仍需要诊断,请在重试后使用“帮助”菜单
Profile created 已创建配置文件"{{value0}}" 已创建配置文件“{{value0}}”

Why

  • Mixing punctuation and 您/你 on the same screen makes the UI look machine-translated.
  • Earlier zh work (fix(i18n): fill Simplified Chinese coverage gaps on desktop and mobile #43011) chose no final 。 and 你. Strings added since then brought 。 and 您 back.
  • 396 values already use “ ”, so the 86 values still using ASCII quotes are moved to “ ” instead of going the other way.
  • Changing the override scripts too means a future catalog sync doesn't undo this.

Linked Issue

Refs #32207 (localization; this is one part of it, the zh style pass). Follows #43011 and #50431.

Visual Proof

Simplified Chinese, rendered through component fixtures (headless Chrome, zh-CN, light, 2x). Left is main, right is this change.

Screen main This PR
Settings › Voice › Speech model speech models on main speech models with this PR
macOS update dialog macOS update dialog on main macOS update dialog with this PR
Session search tip session search tip on main session search tip with this PR

The quote conversions have no screenshots because no component fixture reaches them. The Examples table above shows the catalog values instead.

Testing

  • Squashed onto current main (f7eb7be). The changed lines match the reviewed patch exactly, and the same 5 files are touched.

  • Passed: verify:localization-catalogs, verify:localization-catalog, verify:localization-protected-copy, verify:mobile-localization (zh desktop 24652/25091 translated, zh mobile 6657/6957, no key or placeholder errors).

  • Static gates on the changed .mjs files: anti-slop oxlint, code-quality oxlint, ast-grep, and the changed-code quality gate all pass. oxfmt --check passes on all 5 files.

  • The zh values were reviewed by a native-speaker localizer pass. Checked on macOS (fixture renders) and with the mobile localization verifier. No platform-specific code is involved.

  • 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: only catalog values change, and the localization verifiers already check keys, placeholders and coverage.

Performance

None, because only catalog strings change. Nothing new runs at startup, on a timer, or on disk/IPC. Catalog sizes go down slightly: desktop zh.json 1,586,086 → 1,584,204 bytes, mobile zh.json 391,719 → 390,894 bytes.

Risk

Level: Low

  • Only zh values change, so English and other locales are unaffected. The riskiest part is a value whose ending 。 is needed because code joins it with another sentence. The three known cases keep their 。.
  • 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 #50432. Authorship is kept on the squashed commit.

@coderabbitai

coderabbitai Bot commented Nov 27, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Note

Reviews paused

It 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 reviews.auto_review.auto_pause_after_reviewed_commits setting.

Use the following commands to manage reviews:

  • @coderabbitai resume to resume automatic reviews.
  • @coderabbitai review to trigger a single review.

Use the checkboxes below for quick actions:

  • Resume reviews
  • Trigger review

No actionable comments were generated in the recent review.

Walkthrough

Chinese catalog overrides and mobile and renderer locale strings are updated. The changes adjust second-person wording, punctuation, and quotation marks. Some localized messages are revised. The supplied summaries report that message keys and placeholders remain unchanged, and that no application logic changes are present.

Merge Risk: Minimal · up to 699ea

This PR standardizes Simplified Chinese punctuation, quotes and form of address in the desktop and phone catalogs without changing application logic. The risk is limited to cosmetic copy differences, and no merge-blocking issue was found.

Pre-merge checks: Passed 3 · Inconclusive 1

Failed Failed checks: 1 inconclusive

Check name Status Explanation Resolution
Description check Inconclusive The description is thorough and follows the template. It has an ELI5, What Changed (with a before/after table and exceptions), Why, a linked issue (Refs #32207, not a 'Fixes' link), Visual Proof with … 1) Replace 'Refs #32207' with a 'Fixes #' link to an actual issue, or confirm that the author is a stablyai org member who attaches a pre-existing issue. The template says outside contributors need a real linked issue, and 'Refs' is not suf…
Passed Passed checks: 3 passed

Check name Status Explanation
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.
Title check Passed The title "fix(i18n): use one zh punctuation, address and quote style" names the main change: standardizing Simplified Chinese punctuation, form of address (您 to 你), and quote style across the zh loca…
Full details: Title check

Explanation

The title "fix(i18n): use one zh punctuation, address and quote style" names the main change: standardizing Simplified Chinese punctuation, form of address (您 to 你), and quote style across the zh locale catalogs. It matches the changeset and the PR objectives, which describe the same punctuation, address, and quote standardization. It is specific and conventional, and it does not include file lists or vague terms.

Full details: Description check

Explanation

The description is thorough and follows the template. It has an ELI5, What Changed (with a before/after table and exceptions), Why, a linked issue (Refs #32207, not a 'Fixes' link), Visual Proof with before/after screenshots for the changed UI strings, Testing with the verifier commands run, a Performance line that names the reason (catalog strings only) and gives catalog size changes, a Risk section with level Low and a revert path, and the agent skill upstream boundary box checked. The AI Disclosure section is absent, and the Testing checklist leaves 'I manually tested' unchecked. The Linked Issue is a refs-only link, which the template says is not sufficient for outside contributors. The author is not a stablyai maintainer in the description, so the template requires a real linked issue. Some screenshot URLs point to a fork path (x-Ai/orca) and the quote-conversion UI is not visually shown.

Resolution

  1. Replace 'Refs #32207' with a 'Fixes #' link to an actual issue, or confirm that the author is a stablyai org member who attaches a pre-existing issue. The template says outside contributors need a real linked issue, and 'Refs' is not sufficient. 2) Fill in the AI Disclosure section, or state that it does not apply because the contributor is a StablyAI team member. 3) Confirm the manual testing checkbox. Mark it checked if the changes were tested locally, or explain why it is unchecked. 4) Confirm that the before/after screenshot links resolve for reviewers outside the fork. 5) For the quote-conversion changes, which have no visual proof, state the reason in the Visual Proof section. The text already gives a reason, so this is optional.
  • 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: 33bea202-5aeb-41c9-b0fe-bbd5e8e7acac
Commits

Reviewing files that changed from the base of the PR and between 3cb1c36 and 699ea74.

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; 8 remain after this review.

@x-Ai

x-Ai commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@nwparker Thank you for pushing the quote decision to this branch yourself: “ ” everywhere, command and JSON literals and the iOS strings left alone, and the CLI tip fragments left to #50431. That is the right call, and it made this PR much simpler.

I merged the latest main on top of your commits and rewrote the description to match your decision. It now says quotes settle on “ ”, counts the 955 desktop and 318 phone values this PR really changes, and the screenshots are re-shot against current main. It merges cleanly and the checks pass.

Whenever you have a moment, could you merge this one as well? Together with #50430 it finishes the Simplified Chinese pass: the missing strings are filled in, the misread ones are corrected, and the punctuation, 你 and quotes follow one style. That is a real milestone for the Chinese UI. Thank you again for your time and help!

Simplified Chinese mixed sentence-final 。 with bare endings, 您 with 你,
and ASCII quotes with “ ”. Apply the catalog's dominant style across the
desktop and phone zh catalogs: drop the sentence-final 。, use 你, convert
remaining ASCII quotes to “ ”, and join the short Voice settings sentences
with ,. The zh values in the locale override scripts follow the same style
so a catalog sync keeps it. Wording is unchanged; zh-Hant is untouched.

Refs stablyai#32207

Co-authored-by: Neil <[email protected]>
@nwparker nwparker changed the title fix(i18n): one zh punctuation and quote style fix(i18n): use one zh punctuation, address and quote style Nov 27, 2026
Per-key merge of both zh catalogs: the strings the missing-strings PR added
sit next to this branch's restyled lines, and neither set overlaps the other.
@x-Ai

x-Ai commented Nov 27, 2026

Copy link
Copy Markdown
Contributor Author

@nwparker Thank you for merging #50430. Once it landed, this PR conflicted in the two zh catalogs, so I merged the latest main on top of your squashed commit. The conflict was only neighbouring lines, with no shared keys and your commit untouched. It merges cleanly now, pnpm check:changed passes on my side and the clean check is green.

Whenever you have a moment, could you merge this one too? It is the last piece of the zh pass: with it the punctuation, 你 and “ ” quotes follow one style across the desktop and phone catalogs. I know you are busy, so there is no rush. Thank you again for all your help!

Per-key merge of the phone zh catalog: main removed 244 phone strings and
added 138 English ones next to this branch's restyled lines. 7 of this
branch's restyled values belonged to keys main deleted and go with them; the
other 311 are unchanged.
@nwparker
nwparker merged commit b5afe13 into stablyai:main Nov 27, 2026
58 of 59 checks passed
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