Skip to content

fix(i18n): translate English terms left in Korean copy and fail the catalog check on them - #47335

Merged
AmoabaKelvin merged 4 commits into
mainfrom
fix/ko-glossary-terms
Nov 23, 2026
Merged

AmoabaKelvin merged 4 commits into
mainfrom
fix/ko-glossary-terms

Conversation

@AmoabaKelvin

@AmoabaKelvin AmoabaKelvin commented Nov 23, 2026 •

Copy link
Copy Markdown
Collaborator

ELI5

With Orca set to Korean, many screens still had English words in the middle of Korean sentences: "agent를 시작했습니다", "repos 경로", "새 terminal", "Source Control AI 설정". Some said 리포지토리 where the rest of the app says 저장소. This replaces them with the Korean words the app already uses, and makes the catalog check fail if one of these English words comes back.

Files Added Deleted Net
Test 0 0 0 0
Prod 8 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​781 $\color{#cf222e}{\Huge{\mathbf{−}}}$​645 $\color{#1a7f37}{\Huge{\mathbf{+}}}$​136

What Changed

Catalog values. 434 desktop and 50 mobile Korean values now use the settled terms:

English Before (examples) After
agent agent를 시작했습니다 · agents 검색... · AI agent 에이전트
commit commit 되지 않은 변경 사항 · Commit 메시지 커밋
repo, repository repos 경로 · repo 아이콘 · Git 리포지토리 저장소
terminal 새 terminal · Terminal 세션 터미널
Source Control Source Control AI 설정 소스 제어

Only the term changes, with the particle or spacing next to it fixed: 커밋을/이, 에이전트를/가, 터미널로, and 커밋되지, 에이전트용 and 커밋만큼 joined. "Fork Agent Session" becomes 에이전트 세션 포크 instead of 포크 에이전트 세션. The 99 Korean pins in locale-ko-key-overrides.json that held the old wording get the same values, so repair-locale-catalog keeps the new ones. 85 of them match catalog keys; 14 are for keys not yet in the catalog.

These stay in English on purpose: product names (Claude Agent Teams, Hermes Agent, Google Agent Platform, Azure Repos, Azure DevOps Repos), CLI commands (orca terminal, git commit), placeholders, tags, code and identifiers (agent-browser, .agents/, repo:).

Verifier. verify-localization-catalog.mjs, which the desktop and mobile verifiers share, now fails when a glossary locale keeps one of these terms in English, or uses a variant spelling the glossary replaces. For example:

auto.components.tab.bar.TabBar.7c1313d237: Terminal -> 터미널 (새로운 Terminal:)
  • The glossary is the existing GENERIC_TERM_FAMILIES in locale-generic-ui-terms.mjs. The first rendering of each family is the settled term. This PR adds repository terms, a Source Control family and a variants list (리포지토리 for ko). Continue is marked glossary: false because it is also a product name.
  • GLOSSARY_LOCALES lists the locales that are checked: only ko for now. Another locale opts in by adding itself there once its catalog is clean, using its renderings in the same families.
  • The check skips placeholders, backtick and <code> code, markup, URLs, orca|git|gh|glab <subcommand> phrases, identifier-joined tokens and multi-word NEVER_TRANSLATE_VALUES product names. Azure Repos, Azure DevOps Repos, Hermes Agent and Google Agent Platform are added to that list. Values copied from English are checked too, which is how the mobile Commit buttons and the commit search keyword were found.
  • The check lives in catalog-validation/locale-glossary-checks.mjs. The existing collectGenericTermRegressions moved there with it (unchanged), so the verifier stays under the 600-line cap, and the brand prefilter benchmark now bundles that module.

Why

The leftovers come from older catalog repairs. The ko brand-mistranslation table lists 에이전트, 커밋, 저장소 and 터미널 as wrong renderings of Agent, Commit, Repo and Terminal, and before the #12113 guard (isCanonicalGenericRendering) brand repair turned them back into English. Today's policy no longer does that, but the old values stayed, and new machine translations can still bring English in. A verifier rule keyed on the glossary catches both at the place where catalogs are already checked, instead of another one-off cleanup. Reusing the generic term families keeps one list of settled terms for repair and verification.

Linked Issue

Follow-up to #47240 and #47243 (both closed), which fixed the bot templates and the Source Control panel.

Visual Proof

N/A: copy only. Every new word is the one the same screens already use elsewhere (the commit button already says 커밋, the agent picker already says 에이전트). The tables above show the before and after wording.

Testing

  • pnpm verify:localization-catalogs and pnpm verify:mobile-localization pass. All other locales are unchanged.

  • Injected leftovers fail the check and allowlisted forms pass: agent를, 이 리포지토리, Commit 및 푸시, Source Control AI 설정, 새 terminal., bare Agent, <b>Agent</b> and Terminal: fail; `orca agent list`, agent-browser, Claude Agent Teams, git commit이, {{agent}}, Azure Repos, .agents/, orca terminal, <repo/>, <code>Agent</code>, Hermes Agent, URLs and Continue pass. A real 리포지토리 put back into mobile ko.json fails verify:mobile-localization.

  • repairTranslatedValue rewrites none of the 484 changed values, so a repair run keeps them.

  • locale-brand-prefilter-benchmark.mjs runs against the main policy and reports matching catalog outputs, regression reports and repair counts.

  • pnpm check:changed passes.

  • I manually tested these changes locally

  • Automated tests added/updated, or explained why not below: the verifier runs on the real catalogs in CI, which is the guard; repo policy excludes copy tests

  • Every added test fails without this change and avoids the test anti-patterns

Performance

Catalogs load only when Korean is selected. Desktop ko.json goes from 1679.7 KB to 1681.2 KB (gzip 435.5 KB to 435.1 KB), and parse stays at about 3.0 ms. Mobile ko.json is 303.7 KB to 303.6 KB, and parse stays at 0.48 ms. The glossary check adds a median of 44.2 ms per run on desktop ko (22,180 entries) and 8.7 ms on mobile ko (4,365 entries). For comparison, the existing generic-term check takes about 375 ms, and a full verify:localization-catalogs run takes 11–20 s. No app runtime code changes.

Risk

Level: Low

Catalog strings, override pins and a build-time check. The worst case for users is an awkward Korean sentence. For contributors, a new translation that keeps "agent" or "repo" in Korean now fails CI and names the key. A real product name that trips the rule goes into NEVER_TRANSLATE_VALUES. A plain revert backs it all out.

AI Disclosure

Review

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

Mobile: the mobile catalog gets the same terms, and the mobile verifier runs the same rule through the shared catalog check.

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)

… in the verifier

About 430 desktop and 48 mobile Korean values still said agent, commit,
repo, terminal or Source Control in English, or 리포지토리 for repository.
They now use the settled terms (에이전트, 커밋, 저장소, 터미널, 소스 제어),
including the Korean key overrides that pinned the old wording.

The catalog verifier now fails when a glossary locale keeps one of these
terms in English. The glossary reuses the generic term families, skips
placeholders, code, markup, URLs, CLI commands and multi-word product
names, and other locales opt in by adding themselves to GLOSSARY_LOCALES.
…hmark running

"새로운 Terminal:" slipped through because the rule treated every trailing
colon as identifier syntax; only a colon joined to more text (repo:query) is
exempt now. The brand prefilter benchmark bundles the glossary checks module,
where collectGenericTermRegressions moved.
@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

Walkthrough

The changes add Korean glossary rules and glossary validation for localization catalogs. The verifier now reports glossary violations and generic-term regressions, and glossary violations contribute to validation failure. Korean translations in the overrides, mobile, and renderer catalogs are updated for terms including agent, terminal, repository, and commit. The benchmark now bundles the glossary checks module.

Merge Risk: Low · up to f525c

This updates Korean wording and adds a terminology check to the localization verifier. Some English glossary terms can still slip past the check, such as terms in uppercase or right after a URL. These are minor gaps in tooling coverage and do not affect product behavior, so the change is low risk to merge.

Pre-merge checks: Passed 4

Check name Status Explanation
Title check Passed The title names the two main parts of the change: translating English terms left in Korean copy, and making the catalog check fail on them. It matches the changeset, which replaces English loanwords i…
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.
Description check Passed The description follows the template closely: it has ELI5, What Changed, Why, Linked Issue, Visual Proof (N/A with reason), Testing with checkboxes, Performance, Risk with level, and Checklist. It exp…
Full details: Title check

Explanation

The title names the two main parts of the change: translating English terms left in Korean copy, and making the catalog check fail on them. It matches the changeset, which replaces English loanwords in ko catalogs and adds a glossary check to the verifier. The 'fix(i18n)' prefix is a conventional-commit style choice and does not affect the assessment.

Full details: Description check

Explanation

The description follows the template closely: it has ELI5, What Changed, Why, Linked Issue, Visual Proof (N/A with reason), Testing with checkboxes, Performance, Risk with level, and Checklist. It explains the before/after wording, the verifier mechanism, and the rollback path (plain revert). The Linked Issue section cites #47240 and #47243 as follow-ups but does not contain a 'Fixes #' line. The template says outside contributors must link an actual issue, and this section does not clearly do that. The AI Disclosure and Review sections are empty, but the template marks AI Disclosure as optional for StablyAI team members. The description also says the initial CLI-subcommand exemption is described, but the PR objectives state a later commit narrowed it to singular subcommands. The description still says 'orca|git|gh|glab <subcommand> phrases' are skipped, so it is slightly out of date.

  • 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

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

Actionable comments posted: 2

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: 6d28f7c8-eed4-4afd-af8e-e18de714734f
Commits

Reviewing files that changed from the base of the PR and between 9eb2da1 and 2b9b3c8.

Files selected for processing: 8

  • config/scripts/locale-catalog/locale-brand-prefilter-benchmark.mjs
  • config/scripts/locale-catalog/locale-generic-ui-terms.mjs
  • config/scripts/locale-catalog/locale-ko-key-overrides.json
  • config/scripts/locale-catalog/locale-translation-policy.mjs
  • config/scripts/localization/catalog-validation/locale-glossary-checks.mjs
  • config/scripts/localization/catalog-validation/verify-localization-catalog.mjs
  • mobile/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/ko.json

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

A ko value copied from English (the mobile Commit buttons, the commit
search keyword) still showed English, so the glossary now checks it too.
Hermes Agent and Google Agent Platform join the product names that stay
Latin, and <code> contents are exempt like backtick code.

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

Actionable comments posted: 2

Caution

Some comments are outside the diff and can’t be posted inline due to GitHub limitations.

⚠️ Outside diff range comments (1)

Minor · Match uppercase glossary terms. · locale-glossary-checks.mjs:31

config/scripts/localization/catalog-validation/locale-glossary-checks.mjs:31
Minor · Functional Correctness · Quick win

Match uppercase glossary terms.

A Korean value such as AGENT passes validation because the rule lists Agent and agent, and this regex is case-sensitive. Match English glossary terms case-insensitively so uppercase UI labels are checked too.

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: a0c271a8-1313-41fa-8d20-3e8a3c4da1ad
Commits

Reviewing files that changed from the base of the PR and between 2b9b3c8 and 8eee1f7.

Files selected for processing: 5

  • config/scripts/locale-catalog/locale-translation-policy.mjs
  • config/scripts/localization/catalog-validation/locale-glossary-checks.mjs
  • config/scripts/localization/catalog-validation/verify-localization-catalog.mjs
  • mobile/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/ko.json
Files skipped from review as they are similar to previous changes: 2

  • mobile/src/i18n/locales/ko.json
  • src/renderer/src/i18n/locales/ko.json

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


// Why: placeholders, code, markup, URLs and CLI invocations (orca terminal, git commit) keep English on purpose.
const EXEMPT_SPAN_RE =
/\{\{[^}]*\}\}|\{[^}]*\}|`[^`]*`|<code>[\s\S]*?<\/code>|<[^>]*>|https?:\/\/\S+|\b(?:orca|git|gh|glab) [a-z][a-z-]*/g

@coderabbitai coderabbitai Bot Nov 23, 2026 •

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.

Minor · Functional Correctness · Quick win

Distinguish command phrases from prose.

For the Korean value git repository를 엽니다, this expression removes git repository before the glossary check. The English term therefore passes validation even when it describes a repository rather than a command. Limit this exemption to recognized command phrases while keeping actual commands exempt.


Minor · Functional Correctness · Quick win

Exempt code elements with attributes.

For <code class="inline">Agent</code>, the code-element alternative does not match. The tag alternative removes the tags and leaves Agent, so validation rejects the code contents. Match code elements with attributes as well as bare <code> elements.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Fixed in f525c48: plural and repository words after git/gh/orca/glab are no longer exempt.

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.

Analysis chain

Script executed:

#!/bin/bash
set -u
printf '%s\n' '--- Current revision ---'
git rev-parse HEAD
printf '%s\n' '--- Reported commit summary ---'
git show --format=fuller --stat --no-renames f525c48f5b5 -- config/scripts/localization/catalog-validation/locale-glossary-checks.mjs 2>&1
printf '%s\n' '--- Glossary checks outline ---'
ast-grep outline config/scripts/localization/catalog-validation/locale-glossary-checks.mjs --items all 2>&1
printf '%s\n' '--- Glossary checks numbered source ---'
cat -n config/scripts/localization/catalog-validation/locale-glossary-checks.mjs | sed -n '1,180p'
printf '%s\n' '--- Related regression cases ---'
rg -n -C 3 'git repository|gh repos|code class|EXEMPT_SPAN_RE' config/scripts 2>&1 | head -240
printf '%s\n' '--- Repository instruction file locations ---'
fd -HI '^AGENTS\.md$' . -E node_modules -E .git | head -80
printf '%s\n' '--- Root instructions mentioning review threads ---'
if [ -f AGENTS.md ]; then rg -n -i -C 3 'resolv|review thread|review comment' AGENTS.md || true; fi
printf '%s\n' '--- Nested instructions mentioning review threads ---'
for f in config/AGENTS.md config/scripts/AGENTS.md config/scripts/localization/AGENTS.md config/scripts/localization/catalog-validation/AGENTS.md; do
  if [ -f "$f" ]; then printf '\n--- %s ---\n' "$f"; cat "$f"; fi
done

Length of output: 11258


Script executed:

#!/bin/bash
printf '%s\n' '--- Generic term definitions ---'
ast-grep outline config/scripts/locale-catalog/locale-generic-ui-terms.mjs --items all 2>&1
rg -n -C 5 'Agent|Repository|Repositories|glossaryRules' config/scripts/locale-catalog/locale-generic-ui-terms.mjs | head -160

Length of output: 2353


@AmoabaKelvin Thanks. The change covers git repository and gh repos, but two cases remain at Line 16:

  • git agent is still exempt, even when used as prose.
  • <code class="inline">Agent</code> still leaves Agent visible to the glossary check.

I’m not marking the finding as addressed.


If you found this review helpful, would you consider giving us a shout-out on X?

Thank you for using CodeRabbit!

You are interacting with an AI system.

Subcommands are singular, so "git repository" or "gh repos" in Korean copy
is checked like any other English term.

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

Actionable comments posted: 1

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: e93a8933-8c1e-4359-839e-1f0fb50e9189
Commits

Reviewing files that changed from the base of the PR and between 8eee1f7 and f525c48.

Files selected for processing: 1

  • config/scripts/localization/catalog-validation/locale-glossary-checks.mjs

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

// Why: placeholders, code, markup, URLs and CLI invocations (orca terminal, git commit) keep English on purpose;
// subcommands are singular, so "git repository" or "gh repos" is prose.
const EXEMPT_SPAN_RE =
/\{\{[^}]*\}\}|\{[^}]*\}|`[^`]*`|<code>[\s\S]*?<\/code>|<[^>]*>|https?:\/\/\S+|\b(?:orca|git|gh|glab) (?!repositor|(?:repo|commit|agent|terminal)s\b)[a-z][a-z-]*/g

@coderabbitai coderabbitai Bot Nov 23, 2026 •

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.

Minor · Functional Correctness · Quick win

Stop URL exemptions before markup and tag delimiters.

https?:\/\/\S+ consumes text after a URL until whitespace. A value such as See https://example.com<br>Agent now therefore loses Agent in readableCopy, and the glossary check cannot report it. Limit the URL match to characters that cannot start markup:

Suggested fix

--- "a/config/scripts/localization/catalog-validation/locale-glossary-checks.mjs"
+++ "b/config/scripts/localization/catalog-validation/locale-glossary-checks.mjs"
@@ -13,7 +13,7 @@
 // Why: placeholders, code, markup, URLs and CLI invocations (orca terminal, git commit) keep English on purpose;
 // subcommands are singular, so "git repository" or "gh repos" is prose.
 const EXEMPT_SPAN_RE =
-  /\{\{[^}]*\}\}|\{[^}]*\}|`[^`]*`|<code>[\s\S]*?<\/code>|<[^>]*>|https?:\/\/\S+|\b(?:orca|git|gh|glab) (?!repositor|(?:repo|commit|agent|terminal)s\b)[a-z][a-z-]*/g
+  /\{\{[^}]*\}\}|\{[^}]*\}|`[^`]*`|<code>[\s\S]*?<\/code>|<[^>]*>|https?:\/\/[^\s<>]+|\b(?:orca|git|gh|glab) (?!repositor|(?:repo|commit|agent|terminal)s\b)[a-z][a-z-]*/g
 
 // Multi-word product names (Claude Agent Teams, Azure Repos) contain glossary terms but stay Latin.
 const PRODUCT_NAMES = [...NEVER_TRANSLATE_VALUES]
Committable suggestion

IMPORTANT
Review the replacement and indentation, then test before committing.

Suggested change
/\{\{[^}]*\}\}|\{[^}]*\}|`[^`]*`|<code>[\s\S]*?<\/code>|<[^>]*>|https?:\/\/\S+|\b(?:orca|git|gh|glab) (?!repositor|(?:repo|commit|agent|terminal)s\b)[a-z][a-z-]*/g
/\{\{[^}]*\}\}|\{[^}]*\}|`[^`]*`|<code>[\s\S]*?<\/code>|<[^>]*>|https?:\/\/[^\s<>]+|\b(?:orca|git|gh|glab) (?!repositor|(?:repo|commit|agent|terminal)s\b)[a-z][a-z-]*/g

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

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

Leaving this one: no catalog value has a URL running straight into markup (checked both ko catalogs), and the worst case is a missed flag, not a false failure.

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.

1 participant