Skip to content

fix(i18n): use Taiwan terms for computer and tab in zh-Hant - #25089

Closed
TW199501 wants to merge 30 commits into
stablyai:mainfrom
TW199501:dev
Closed

TW199501 wants to merge 30 commits into
stablyai:mainfrom
TW199501:dev

Conversation

@TW199501

@TW199501 TW199501 commented Oct 3, 2026

Copy link
Copy Markdown
Contributor

Summary

Adjusts the Traditional Chinese locale strings to use Taiwan-appropriate terms for “computer” and “tab” in the UI.

Before

The zh-Hant locale used wording that was more aligned with Simplified Chinese or generic terms rather than Taiwan usage.

After

The locale now uses Taiwan-specific terminology in the affected UI strings.

Why

This keeps the application language consistent with the expected Traditional Chinese phrasing for Taiwanese users and reduces wording mismatch in the interface.

TW199501 and others added 4 commits October 3, 2026 23:05
Traditional Chinese system locales (zh-TW, zh-HK, zh-MO, zh-Hant*) used to
fall back to English. They now resolve to a new zh-Hant catalog, which is also
selectable in Settings > Appearance > Language.

i18next's default load:'all' would resolve zh-Hant through zh before en, so
keys missing from zh-Hant would show Simplified Chinese; both the renderer and
main instances now use load:'currentOnly' to fall straight back to English.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Bootstrap, repair, and the translation policy now cover zh-Hant: CJK/Latin
spacing, native picker labels, and a git-ignored bootstrap cache.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
計算機 and 製表符 are mainland usage; Traditional Chinese UI copy uses 電腦 and
分頁. "Computer Use" is now consistently 電腦控制 instead of three variants.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@TW199501
TW199501 requested a review from brennanb2025 as a code owner October 3, 2026 21:30
@coderabbitai

coderabbitai Bot commented Oct 3, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

Important

Review skipped

We couldn't safely recover the incremental review. No full review was started, and the last reviewed checkpoint was preserved. Retry later, or explicitly request a full review by commenting @coderabbitai full review.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration
  • Configuration used: Repository UI
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 37bf6582-f3bc-44d3-8683-c1819cc2dd0a
📥 Commits

Reviewing files that changed from the base of the PR and between 0f67bbe and fc3bedb.

📒 Files selected for processing (3)
  • src/renderer/src/i18n/supported-languages.ts
  • src/shared/ui-language.ts
  • src/shared/ui-locale.ts
🚧 Files skipped from review as they are similar to previous changes (3)
  • src/shared/ui-language.ts
  • src/renderer/src/i18n/supported-languages.ts
  • src/shared/ui-locale.ts

Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 9 remain after this review.

📝 Walkthrough

Adds Traditional Chinese (zh-Hant) as a built-in UI language. Chinese locale tags for Taiwan, Hong Kong, Macau, and Traditional Chinese resolve to zh-Hant. The renderer and main process load a dedicated Traditional Chinese catalog, with English fallback for missing entries. Language choices, translation labels, catalog tooling, and locale tests are updated.

Priority: ➖ Normal

Merge Risk: ⚪ Minimal · up to fc3be

This change adds Traditional Chinese as a UI language option. No concrete merge-blocking risk was identified in the supplied context.

Security architecture risk: 🔵 Low · up to 0f67b

The inspected change is limited to language selection and translation loading. No expanded permissions or data access were identified, but recovery during failed or overlapping language changes is not fully established.

Retained concerns
No architecture-level concerns identified.

Security review details

Security Blast Radius

  • inferred — The inspected runtime exposure is translation content shown in renderer UI and main-process menus or dialogs. The new locale selects fixed catalog imports rather than introducing a caller-controlled resource path. Tooling exposure includes outbound English catalog strings and repository catalog/cache writes.

Trust Boundaries and Controls

  • observed — The inspected plugin catalog route filters invalid or unapproved plugins, verifies content, invokes contained size-bounded artifact reading, and parses catalogs before publication. Main-process selection requires an exact registered pack match. The added built-in zh-Hant import does not bypass this route.
🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description explains what changed and why, but omits several required template sections and verification details. Add a linked issue if you are an outside contributor. Add before-and-after visual proof, or state N/A with a reason if there is no visual or interaction change. Describe testing steps and platforms, and complete the testing checkboxes. Add …
Docstring Coverage ⚠️ Warning Docstring coverage is 53.85% which is insufficient. The required threshold is 80.00%. Docstring coverage is scoped to functions touched by this diff. Analyzed 13 functions across 14 files. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title identifies the Traditional Chinese terminology change, which matches the stated purpose of the pull request.
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: Description check

Resolution

Add a linked issue if you are an outside contributor. Add before-and-after visual proof, or state N/A with a reason if there is no visual or interaction change. Describe testing steps and platforms, and complete the testing checkboxes. Add the agent skill upstream boundary response, review notes, and checklist. Include AI disclosure if you are an outside contributor.

  • Autopilot · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Comment @coderabbitai help to get the list of available commands.

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

ℹ️ No critical issues — a couple of minor suggestions inline.

Reviewed changes

This initial review covers the whole PR (4 commits, 23 files). Despite the title, it does not stop at a terminology fix: it adds a complete Traditional Chinese (zh-Hant) UI language and then folds in the Taiwan-terminology pass.

  • New zh-Hant UI language — UI_LANGUAGE_CHINESE_TRADITIONAL threaded through shared/ui-language.ts, shared/ui-locale.ts, the settings picker (supported-languages.ts + the label in every catalog), and both lazy locale loaders. zh-TW/zh-HK/zh-MO/zh-Hant* system locales now resolve to it instead of English.
  • load: 'currentOnly' — added to the main and renderer i18next inits so keys absent from zh-Hant fall back to English rather than inheriting Simplified copy from zh.
  • New zh-Hant.json catalog (~15k entries) with a Simplified-character guard test and a settings-label test; bootstrap/repair/translation policy taught about zh-Hant; en-runtime-required.json regenerated.

ℹ️ The PR is much larger than its title and description

The title and body describe only the computer/tab terminology change, but the PR also introduces a complete, selectable UI language (~19k added lines), changes runtime i18next behavior (load: 'currentOnly'), and touches the locale tooling. A reviewer who reads this as "a small zh-Hant wording fix" would miss that it is the first-class locale addition — updating the description (or splitting the terminology pass out) would make the merge decision match the change.

ℹ️ Nitpicks

  • src/renderer/src/i18n/i18n.ts:76 still reads "the input to the four lazy catalogs"; there are now six non-English catalogs.
  • The existing per-locale regression suites still enumerate only { es, ja, ko, zh } (e.g. locale-english-regression.test.ts, notification-agent-status-locales.test.ts, native-chat-locales.test.ts, smart-workspace-jira-locales.test.ts, DictationIndicator.localization.test.ts), so zh-Hant sits outside the nets that catch untranslated or reverted strings.

Pullfrog  | Fix all ➔ | Fix 👍s ➔ | View workflow run | Using deepseek-v4.1-flash (free via Pullfrog for OSS) | 𝕏

const entries: [string, string][] = []
collectStrings(zhHant, '', entries)
expect(
entries.filter(([, value]) => /計算機|製表符/.test(value)).map(([path]) => path)

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 guard passes, but zh-Hant.json still ships two Simplified 云 (cloud) values where Traditional Chinese uses 雲:

  • auto.components.skills.SkillShareDialog.newVersionDescription — ...然後將不可變版本釋出到現有云包。
  • auto.components.settings.EphemeralVmRuntimesSection.cloudVmEmptyWithSetup — 還沒有云虛擬機器執行時。...

云 is a valid Traditional character with a different reading ("to say"), so it cannot join the blanket SIMPLIFIED_ONLY_CHARACTERS set without false-positive risk; a targeted cloud-term assertion (or a forbidden-value list) is the way to guard this class alongside fixing the two values.

Technical details
# Two Simplified `云` survive the Simplified-character guard

## Affected sites
- src/renderer/src/i18n/locales/zh-Hant.json — `auto.components.skills.SkillShareDialog.newVersionDescription` holds `現有云包`; should be `現有雲包`.
- src/renderer/src/i18n/locales/zh-Hant.json — `auto.components.settings.EphemeralVmRuntimesSection.cloudVmEmptyWithSetup` holds `云虛擬機器`; should be `雲虛擬機器`.
- src/renderer/src/i18n/zh-hant-simplified-character-guard.test.ts:5-8 — the curated `SIMPLIFIED_ONLY_CHARACTERS` set deliberately omits shared characters, so `云` slips through.

## Required outcome
- The two catalog values use `雲` for cloud.
- The guard catches this class so it cannot regress silently.

## Suggested approach
- Fix the two values. For the guard, either assert a cloud-term pattern (e.g. the catalog contains no `云` immediately preceding `包`/`虛擬`/`端`/`服務`) or extend the curated set carefully, accepting that a legitimate verbal `云` would then false-positive.

TW199501 and others added 4 commits October 4, 2026 07:09
Co-Authored-By: Claude Opus 5.5 <[email protected]>
Add translations for strings introduced upstream (CSV viewer, Codex
shared-server notices, Antigravity accounts, etc.) and drop keys
removed from en.json.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Swift 6.4's swiftbuild engine writes every triple to one shared
Products/Release dir, so the arm64 build overwrote the x64 one.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
@nwparker

Copy link
Copy Markdown
Contributor

@TW199501 I will look into this, but give me a few days

I am currently working on improving language pack support and this will be a great one to launch with. Thank you for your support

btw I will rm you comments on #27143 since they're off topic there, but do feel free to join our Discord!

TW199501 and others added 18 commits October 13, 2026 10:48
Drop 128 keys upstream removed, add {{agent}} to the two providerRejected
strings, and translate the 832 new strings with Taiwan wording.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Taiwan writes cloud as 雲端; replace the Simplified 云 and bare 雲, and
keep the Bitbucket Cloud product name in English.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Rewrite s2t leftovers such as 會話→工作階段, 獲取→取得, 構建→建置,
令牌→權杖, 本地→本機, 選項卡/標籤頁→分頁, 後臺→背景 and 終端→終端機,
keep Pull Request in English and 智慧體 unchanged, and extend the
zh-Hant guard test so these terms cannot return.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
A full pass over all 15863 strings fixed about 4200 entries:
mistranslations (kebab-case 烤肉串盒, Cookie 曲奇餅, Quit 辭職,
terminal 航站樓), a spam fragment in the GitLab MR label, text that no
longer matched its English, leftover English, mainland wording, row and
column swaps, and product names that must stay in English (OpenAI,
Orca Relay, Orca Mobile, Artifacts, HTML). Usage tokens stay "token";
auth tokens use 權杖. The guard test now also blocks the transliterated
brands and the spam fragment.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The tray/menu bar menu was built once at startup, so switching the UI
language rebuilt the app menu but left the tray menu in the old language
until restart. Rebuild it alongside the app menu on language and
language-pack changes.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
StatusBar is wrapped in React.memo and reads its copy through
translate(), so a language switch skipped its render and labels such as
"Used", the host count and the refresh hints stayed in the previous
language. Subscribe with useTranslation(), as TabBarItemRow does.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
One command merges dev into release, pushes both, and with --build-mac
packages a local macOS app for this Mac's architecture into a cleaned
dist/. It restores the recurring pnpm-lock.yaml noise instead of
committing it and returns to the starting branch.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
Memory on one machine is not visible on another, so the sync flow,
build rules, Taiwan wording choices and upstream PR rules now live in
docs/zh-hant-fork.md, referenced from the end of AGENTS.md.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
release carried f40df7a (Swift 6.4 lipo slice copy) plus six dev->release merges.
Merging release back makes dev a descendant of release so release can
fast-forward from origin/dev from now on.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
The sync script merged dev into release and pushed both, so release kept
growing its own merge commits. It now fetches, lists release..origin/dev,
fast-forwards only, and pushes release alone; dev changes go through PRs.

BRANCHING.md records this fork as an ELF type-1 contribution fork.
docs/zh-hant-fork.md and AGENTS.md point at it.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
TW199501 and others added 4 commits October 14, 2026 15:05
fix(E-255): merge release build fix back into dev
chore(E-255): fast-forward release from origin/dev and add BRANCHING.md
…ws build (#3)

Building release on Windows failed twice: the mobile web bundle needs
mobile/ installed on its own, and packaging needs orca-agent-hook.exe.

Co-authored-by: Claude Opus 5.5 <[email protected]>
@TW199501

Copy link
Copy Markdown
Contributor Author

Thank you, I like your work and it brings a lot of convenience to a developer. I will also provide you with and modify the code if I find any bugs in the process of using it.

@OrcaWin

OrcaWin commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Thank you for this! Traditional Chinese (Taiwan) is now a built-in UI language as of #29795: 繁體中文(台灣) in Settings → Appearance → Language. It's picked automatically for zh-TW, zh-HK, zh-MO and zh-Hant system locales, while zh-CN, zh-SG and zh-Hans stay on Simplified. Your work here fed into the terminology choices, including Taiwan wording like 電腦 and 分頁. Closing this one in favor of that PR. If you spot wording that reads wrong to a Taiwanese user, a follow-up PR against src/renderer/src/i18n/locales/zh-Hant.json (glossary in config/i18n-traditional-chinese.md) would be very welcome.

@OrcaWin OrcaWin closed this Oct 28, 2026
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.

3 participants