Skip to content

fix(i18n): standardize Simplified Chinese product terminology - #15464

Merged
OrcaWin merged 3 commits into
stablyai:mainfrom
ansonlotiniat:codex/standardize-zh-product-terminology
Oct 28, 2026
Merged

OrcaWin merged 3 commits into
stablyai:mainfrom
ansonlotiniat:codex/standardize-zh-product-terminology

Conversation

@ansonlotiniat

@ansonlotiniat ansonlotiniat commented Aug 19, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Orca used several different Chinese words for the same core product concepts. This standardizes the existing Simplified Chinese UI glossary without adding a locale or changing the localization architecture.

What Changed

  • Standardizes the reviewed zh terms: agent → 智能体, terminal → 终端, repo/repository → 仓库, review → 评审, issue → 议题, worktree → 工作树, and workspace → 工作区.
  • Updates the existing exact-value, key, search-keyword, and narrowly guarded phrase overrides.
  • Applies those rules to 63 current zh.json leaves only; unrelated repair-policy drift is excluded.
  • Keeps network proxy → 代理 and HTTP User-Agent → 用户代理 distinct from the AI-agent term.
  • Adds regression coverage for the glossary, legacy forms, and the proxy/User-Agent boundaries.

Why

This is the focused glossary-only follow-up requested in #8923. The original draft combined a complete catalog rewrite, a new zh-TW locale, OpenCC, and verifier/bootstrap changes, which was not reviewable as one unit.

Current main already uses 智能体 in most catalog entries, but the existing repair policy still rewrote some values back to 代理. Repository, review, issue, terminal, and worktree copy also retained a smaller set of conflicting forms. This PR fixes that live inconsistency inside the existing override architecture.

Linked Issue

Follow-up to #8923, specifically the maintainer direction in #8923 (comment).

Visual Proof

Representative before/after copy:

Concept Before After
Agent 代理 / 特工 / 检测剂 智能体
Terminal 浮动码头 浮动终端
Repository 存储库 仓库
Review 审查 / 审核 / 托管评论 评审 / 托管评审
Issue 新一期 / 问题 新建议题 / 议题
Worktree worktree / 工作区(in worktree labels) 工作树

No screenshots: this changes locale copy and repair policy only, with no layout or interaction changes.

Testing

  • I manually tested these changes locally
  • Automated tests added/updated, or explained why not below

Validated on Node 24.18.0:

  • 13 focused localization test files: 67 tests passed.
  • verify-localization-catalog.mjs passed for all existing locale catalogs.
  • verify-localization-extraction.mjs passed.
  • Localization coverage passed with the existing 12 allowlisted candidates.
  • Focused oxlint, oxfmt --check, max-lines ratchet, and git diff --check passed.
  • A catalog scope audit confirmed all 63 changed leaves are glossary-bound; no unrelated full-repair output is included.

Manual app QA was not run because this is a string-policy/catalog-only change. The exact runtime values are committed in zh.json and covered by policy tests.

AI Disclosure

OpenAI Codex (GPT-5) was used to extract the glossary-only patch from the human-reviewed #8923 work, apply it to current main, update tests, and run validation. The terminology decisions come from the contributor-reviewed glossary and the maintainer's requested scope.

Review

Scope is deliberately limited to the existing Simplified Chinese override architecture:

  • no new locale;
  • no OpenCC or other dependency;
  • no bootstrap or verifier rewrite;
  • no zh-TW catalog;
  • no unrelated product-copy replacement.

Agent skill upstream boundary

  • Not applicable, or this change follows docs/reference/agent-skill-sharing-upstream-boundary.md and copies or mechanically translates no upstream skill-installer source, tests, fixtures, registry entries, path tables, comments, or documentation.

Notes

No security, permission, path, platform, SSH/remote, mobile-runtime, backwards-compatibility, or performance behavior changes. Shared catalog consumers receive the same standardized copy.

Checklist

  • This PR is small and focused
  • I explained what changed and why (including ELI5)
  • Before/after proof is included above; screenshots are N/A because layout and interactions are unchanged
  • Self-reviewed for correctness, security, and performance
  • Cross-platform, SSH/remote, and path/shortcut impact considered (N/A for locale-only values)
  • Full pnpm lint, pnpm typecheck, pnpm test, and pnpm build are left to CI; focused localization checks passed locally

Author

Refs #10514

Rebase the glossary onto main's existing 代理→智能体 rule, keep only the
new phrase rules and exact-value overrides, and re-derive zh.json from
current main limited to glossary-bound leaves.
@OrcaWin
OrcaWin marked this pull request as ready for review October 28, 2026 00:57
@OrcaWin
OrcaWin requested a review from brennanb2025 as a code owner October 28, 2026 00:57
@coderabbitai

coderabbitai Bot commented Oct 28, 2026 •

Copy link
Copy Markdown
Contributor

Review in Change Stack →

No actionable comments were generated in the recent review.

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: 047345f8-a177-418b-a31e-6b5612ca5d0b
Commits

Reviewing files that changed from the base of the PR and between 6631e5f and ad5cb4e.

Files selected for processing: 4
  • config/scripts/locale-phrase-fixes.mjs
  • config/scripts/locale-translation-policy.zh-round5.test.mjs
  • config/scripts/locale-zh-value-overrides.mjs
  • 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; 4 remain after this review.

Walkthrough

The change updates Chinese phrase-repair rules for agent, workspace, and repository terms, and adds tests for six translation cases. It adds exact-match Chinese overrides for status, issue and review actions, worktree labels, ports, and cleanup messages. It also revises Chinese UI translations across repository, agent, issue, review-thread, workspace, and worktree labels.

Priority: Low

Merge Risk: Minimal · up to ad5cb

No actionable localization issue remains for this change.

Pre-merge checks: Passed 5
Check name Status Explanation
Title check Passed The title clearly and concisely describes the main change: standardizing Simplified Chinese product terminology.
Description check Passed The description is complete and aligned with the template. It explains the scope, motivation, linked work, user-visible changes, testing, AI usage, compatibility considerations, and deferred CI checks…
Docstring Coverage Passed No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentat…
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

Explanation

The description is complete and aligned with the template. It explains the scope, motivation, linked work, user-visible changes, testing, AI usage, compatibility considerations, and deferred CI checks.

Full details: Docstring Coverage

Explanation

No eligible functions found in the changed files. Skipping docstring coverage check. Docstring coverage is scoped to functions touched by this diff with cyclomatic complexity of at least 2. Documentation-only edits and deletions within surviving functions are included; unchanged diff context and fully deleted functions are excluded. Analyzed 0 functions across 3 files. (1 skipped: 1 unsupported.)

  • 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

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

@OrcaWin

OrcaWin commented Oct 28, 2026

Copy link
Copy Markdown
Collaborator

Maintainer edits (merged origin/main, no force-push):

  • locale-phrase-fixes.mjs: kept main's existing 代理→智能体 rule and shared its matcher (ZH_AGENT_SOURCE) with 客服人员 / 代理商 / 座席. Added the 发射(代理|智能体) fix, the 工作空间 whenEnMatches guard, and the 存储库→仓库 rule. The repo matcher now also catches singular "repository"; the original repos?|repositories? missed it.
  • Dropped the 评审 phrase regexes. They aren't part of the agreed glossary scope, so they can come back in a follow-up.
  • locale-zh-value-overrides.mjs: removed the single-word glossary block because it changed no catalog leaf. Also removed child agents and No agent available…, which were already covered. Kept main's values for Agent Session History… and Unread agent completion. Kept the remaining exact-value fixes, including 新建议题, 浮动终端, 正在检测智能体..., 已启动智能体, the 议题 empty states, the 工作树 host-remove and localhost-label strings, and the two review-thread/comment strings.
  • Key, value and search-keyword overrides: main already contains them, so nothing was carried over.
  • zh.json: I didn't replay the stale hunks. I re-derived the file from current main (which already includes fix(i18n): translate 229 missing Simplified Chinese UI strings #34478) and checked each of the 96 changed leaves against its en value. 存储库→仓库 accounts for most of them; the rest are 代理→智能体 for bundledSkillSetupCopy and namingFailure, plus 工作空间→工作区, 新一期, 浮动码头 and 检测剂. Every remaining 代理 is proxy or User-Agent copy.
  • Tests: replaced the round5 additions with one small boundary table: proxy and user agent stay 代理, agents become 智能体, 存储库 becomes 仓库, 工作空间 becomes 工作区.

Validated with verify:localization-catalogs, verify:localization-extraction, verify:localization-coverage, and pnpm test config/scripts/locale-translation-policy src/renderer/src/i18n (114 passed).

@OrcaWin
OrcaWin merged commit 73f3fcd into stablyai:main Oct 28, 2026
34 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