You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
fix(i18n): translate English terms left in Korean copy and fail the catalog check on them - #47335
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.
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: 4
Check name
Status
Explanation
Title check
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
Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check
Check skipped because no linked issues were found for this pull request.
Description check
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.
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.
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 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.
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.
Included review availability: This review used your included allowance. Your plan provides up to 10 included reviews per hour; 0 remain after this review.
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.
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.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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.
What Changed
Catalog values. 434 desktop and 50 mobile Korean values now use the settled terms:
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.jsonthat held the old wording get the same values, sorepair-locale-catalogkeeps 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:GENERIC_TERM_FAMILIESinlocale-generic-ui-terms.mjs. The first rendering of each family is the settled term. This PR adds repository terms, a Source Control family and avariantslist (리포지토리 for ko). Continue is markedglossary: falsebecause it is also a product name.GLOSSARY_LOCALESlists 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.<code>code, markup, URLs,orca|git|gh|glab <subcommand>phrases, identifier-joined tokens and multi-wordNEVER_TRANSLATE_VALUESproduct 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.catalog-validation/locale-glossary-checks.mjs. The existingcollectGenericTermRegressionsmoved 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-catalogsandpnpm verify:mobile-localizationpass. All other locales are unchanged.Injected leftovers fail the check and allowlisted forms pass:
agent를,이 리포지토리,Commit 및 푸시,Source Control AI 설정,새 terminal., bareAgent,<b>Agent</b>andTerminal:fail;`orca agent list`,agent-browser,Claude Agent Teams,git commit이,{{agent}},Azure Repos,.agents/,orca terminal,<repo/>,<code>Agent</code>,Hermes Agent, URLs andContinuepass. A real 리포지토리 put back into mobileko.jsonfailsverify:mobile-localization.repairTranslatedValuerewrites none of the 484 changed values, so a repair run keeps them.locale-brand-prefilter-benchmark.mjsruns against the main policy and reports matching catalog outputs, regression reports and repair counts.pnpm check:changedpasses.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.jsongoes from 1679.7 KB to 1681.2 KB (gzip 435.5 KB to 435.1 KB), and parse stays at about 3.0 ms. Mobileko.jsonis 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 fullverify:localization-catalogsrun 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
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
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)