Skip to content

fix(i18n): drop machine-translated 的 from short Simplified Chinese labels - #52288

Merged
nwparker merged 1 commit into
stablyai:mainfrom
x-Ai:fix/i18n-zh-adjective-labels
Nov 29, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
x-Ai:fix/i18n-zh-adjective-labels

Conversation

@x-Ai

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

Copy link
Copy Markdown
Contributor

ELI5

Machine translation turned many one-word English labels in the Simplified Chinese UI into "adjective + 的" forms, so they read like "the red one" or "the global one" instead of plain labels. A few also got the wrong meaning: the glab CLI showed as 光亮的 ("shiny"), a Raw notebook cell as 生的 ("uncooked"), a Fresh automation session as 新鲜的 (fresh as in food), and Linear's Urgent priority as 紧迫的. This PR replaces them with the plain word a Chinese user expects. Nothing else changes.

What Changed

Catalog values only: 67 in src/renderer/src/i18n/locales/zh.json and 6 in mobile/src/i18n/locales/zh.json. No code, no keys, no other locale.

Before / after (examples):

Area English Before After
Task priorities (Linear, Jira) Urgent / High / Medium / Low 紧迫的 / 高的 / 中等的 / 低的 紧急 / 高 / 中 / 低
Task priorities No priority / Priority 无优先权 / 优先事项 无优先级 / 优先级
Tab color menu, terminal colors Red, Green, Purple, ... 红色的, 绿色的, 紫色的, ... 红色, 绿色, 紫色, ... (matching the existing 蓝色, 青色)
Statuses Failed 失败的 失败 (matching 完成, 已中断 next to it)
Sidebar / phone sort and layout Recent / Manual / Detailed / Empty 最近的 / 手动的 / 详细的 / 空的 最近 / 手动 / 详细 / 空
Editor Modified / Original / Raw cell 修改的 / 原来的 / 生的 已修改 / 原始 / 原始
Automations Fresh session / Last {date} 新鲜的 / 最后的 全新 / 上次
Repo hooks badge local 当地的 本地
Linear views Private (next to Shared 共享) 私人的 私有
Usage heatmap legend Less / More 较少的 / 更多的 少 / 多
Phone task list Pending 待办的 待处理 (matching 标记为待处理)

Settings search keywords (never shown; Settings search matches when a keyword contains what the user typed): the trailing 的 is dropped, wrong senses are fixed (光亮的 → glab, 冷冻的 → 卡死, 专注的 → 聚焦, 快的 → 快捷, 当地的 → 本地), and keywords that main matched by substring keep matching: 过时 (Codex accounts, whose status message says 已过时), 声音 (microphone and camera permissions) and 私人 (browser search engines, whose Kagi text says 私人会话链接).

Five values that match the 的 pattern are correct Chinese and are left alone: 我的, 我创建的, 好的, and 已更改的 mid-sentence.

Why

  • The labels read as machine output, and some read as a different word altogether (shiny, uncooked, freezer).
  • The same menu mixed two styles: the tab color menu showed 蓝色 and 青色 next to 红色的 and 紫色的.
  • 优先权 means a legal right of priority; Chinese task trackers use 优先级.
  • For search keywords, changing to a "better" word could drop matches main already had, so the keywords keep main's recall and only lose the 的.

Linked Issue

Refs #32207 (zh localization quality; this is a partial fix covering Simplified Chinese short labels, and zh-Hant has the same pattern for a follow-up).

Visual Proof

N/A. Every change is a catalog string value (short labels and search keywords) with no layout or behavior change; the tables above list the English, old and new value for each area.

Testing

  • Reproduced on main with a probe that flattens both zh catalogs and matches values against ^[一-鿿]{1,3}的$, values containing 优先权, and the known wrong-sense words: 68 desktop + 8 mobile hits on main, and only the five correct values above on this branch.

  • Key sets and key order are unchanged in both catalogs; no changed value contains a placeholder or tag.

  • repairTranslatedValue (config/scripts/locale-catalog) leaves every new value unchanged, so a future repair pass will not revert them.

  • Simulated Settings search substring matching for the Codex accounts entry: 过时, 到期, 已到期 match on both main and this branch.

  • Passing: pnpm verify:localization-catalogs, pnpm verify:localization-protected-copy, pnpm verify:mobile-localization (7526 call sites, 7005 English entries), oxfmt --check and ast-grep scan on both catalogs.

  • Platforms: catalog data only, so platform-independent.

  • 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: the change is catalog values only, and the existing localization catalog verifiers cover structure and coverage.

Performance

None, because this only changes 73 catalog string values; no runtime code runs differently. The desktop zh catalog shrinks from 1,599,100 to 1,598,913 bytes, and JSON.parse time is unchanged within noise (2.72 ms vs 2.91 ms over 50 runs).

Risk

Level: Low

  • Only zh labels and zh search keywords change; English and other locales are untouched.
  • A user who typed an old trailing-的 form (for example 冷冻) into Settings search no longer matches it; the setting's new keyword, title and description still match the common terms.
  • Older paired phones keep their bundled catalog until they update.
  • Back out with a plain revert.

Review

Reviewed for wording against each key's English source, call site, zh-Hant value and neighbouring zh terms, and for search-recall regressions (two rounds of fixes applied: 过时, 声音, 私人).

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

Ensure no issues in: Security, Cross-platform support (Linux, Windows, Mac), Remote SSH, Mobile, general backwards compatibility, performance

Original fix by @x-Ai in #52288.

Checklist

  • This PR is small and focused
  • I explained what changed and why (ELI5, the user-facing before/after, the mechanism, and why over the alternatives)
  • I stated the risk: what could break, for whom, and how to back it out
  • Before/after screenshots or videos attached for UI changes, or N/A with reason
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (or N/A)
  • pnpm lint, pnpm typecheck, pnpm test, and pnpm build pass (or CI will cover; local preferred)

@x-Ai
x-Ai requested a review from brennanb2025 as a code owner November 29, 2026 05:20
@greptile-apps

greptile-apps Bot commented Nov 29, 2026 •

Copy link
Copy Markdown

Confidence Score: 5/5 · This PR appears safe to merge.RetriggerView in GreptileConfidence Score: 5/5

[Low impact] This PR appears safe to merge.

Summary

Improves short Chinese labels and Settings search words in the desktop and mobile catalogs.

  • Chinese desktop labels now use shorter, clearer words.
  • Chinese Settings search terms now match words users recognize.
  • Phone task and workspace labels use clearer Chinese wording.

Reviews (2) · Last reviewed commit: "fix(i18n): drop machine-translated 的 fro..." · Reviewed by Greptile

@coderabbitai

coderabbitai Bot commented Nov 29, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The mobile and renderer Chinese locale files contain revised translations for UI labels and status text. Changes include task status, workspace and project labels, priorities, colors, and other interface terms. No application logic changes are described.

Merge Risk: Minimal · up to 53ed7

This PR refines Chinese UI labels so they read more naturally, for example by dropping the redundant 的 suffix and using 优先级 for priority. It changes only displayed text and settings search keywords, so the risk to users is minimal. A few old search terms will no longer match, which the author has noted.

Pre-merge checks: Passed 4

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 names the main change: it removes machine-translated 的 suffixes from short Simplified Chinese i18n labels. The changeset edits only zh.json catalog values in the desktop and mobile apps, whi…
Description check Passed The description follows the repository template closely. It has an ELI5 section, a clear What Changed section with a before/after table, a Why section, a Linked Issue (Refs #32207, which is a partial …
Full details: Title check

Explanation

The title names the main change: it removes machine-translated 的 suffixes from short Simplified Chinese i18n labels. The changeset edits only zh.json catalog values in the desktop and mobile apps, which matches the title. The title uses the 'fix(i18n)' prefix, which is a conventional-commit style, and it is 73 characters long, which is within a normal length range.

Full details: Description check

Explanation

The description follows the repository template closely. It has an ELI5 section, a clear What Changed section with a before/after table, a Why section, a Linked Issue (Refs #32207, which is a partial reference and not a 'Fixes #' link), a Visual Proof marked N/A with a reason, a Testing section with commands and results, a Performance line, a Risk section with level Low and a revert plan, an Agent skill boundary checkbox, and a completed checklist. The Linked Issue section does not use 'Fixes #' and the template asks for an actual issue for outside contributors, so the author should confirm that the issue requirement is met. The Review and AI Disclosure sections are present, though the AI Disclosure section is empty.

  • 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: 11f21829-3676-4fde-9835-55988102b6fb
Commits

Reviewing files that changed from the base of the PR and between 4b8d639 and 53ed703.

Files selected for processing: 1

  • src/renderer/src/i18n/locales/zh.json
Files skipped from review as they are similar to previous changes: 1

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

…bels

Machine translation rendered many one-word English labels as Chinese
adjective-的 forms (红色的, 最近的, 失败的) and picked the wrong sense
for a few: the glab CLI read 光亮的 ("shiny"), a Raw notebook cell read
生的 ("uncooked"), a Fresh automation session read 新鲜的, Urgent read
紧迫的, and No priority read 无优先权 (a legal right of priority).

Use the plain label (红色, 全局, 失败, 最近) or the right sense (紧急,
无优先级, 优先级, glab, 原始, 全新, 本地). Settings search keywords keep
the words main already matched (过时, 声音, 私人) so search recall does
not regress.

67 desktop and 6 phone values; keys and other locales are unchanged.

Refs stablyai#32207

Co-authored-by: Neil <[email protected]>
@nwparker
nwparker force-pushed the fix/i18n-zh-adjective-labels branch from 4b8d639 to 53ed703 Compare November 29, 2026 06:21
@nwparker nwparker changed the title fix(i18n): drop the machine-translated 的 from short zh labels fix(i18n): drop machine-translated 的 from short Simplified Chinese labels Nov 29, 2026
@nwparker
nwparker merged commit a203f84 into stablyai:main Nov 29, 2026
60 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