Skip to content

fix(i18n): make Korean settings sentences built from several fragments read correctly - #47810

Merged
nwparker merged 1 commit into
stablyai:mainfrom
dbsghdz1:fix/ko-glued-sentences
Nov 23, 2026
Merged

nwparker merged 1 commit into
stablyai:mainfrom
dbsghdz1:fix/ko-glued-sentences

Conversation

@dbsghdz1

@dbsghdz1 dbsghdz1 commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

ELI5

Some settings help lines are put together from several translated pieces, with a file name or environment variable in the middle. The Korean pieces were translated one at a time, so once joined, the sentences read in the wrong order (for example "Edit orca.yaml changes."). This rewrites the Korean pieces so each joined sentence reads like normal Korean.

What Changed

  • Before: with the Korean UI, eight settings sentences came out broken, e.g. 편집 orca.yaml 변경합니다. and 설정 ORCA_AZURE_DEVOPS_TOKEN, 또는 설정 ORCA_AZURE_DEVOPS_ACCESS_TOKEN. 설정하세요 ....

  • After: each one reads as a single Korean sentence, e.g. 바꾸려면 orca.yaml 파일을 편집하세요. and 다음 환경 변수 중 하나를 설정하세요: ORCA_AZURE_DEVOPS_TOKEN, ORCA_AZURE_DEVOPS_ACCESS_TOKEN. Orca가 Git 원격에서 API 기본 URL을 추론할 수 없는 경우에만 ORCA_AZURE_DEVOPS_API_BASE_URL 환경 변수를 설정하세요.

  • How: the JSX keeps the pieces in English order, so each Korean piece now holds whatever part of the Korean sentence goes before or after the inline code, the same way the Turkish catalog already does it. This changes 17 values in src/renderer/src/i18n/locales/ko.json, plus the matching build-time overrides so repair-locale-catalog keeps them:

    • locale-ko-key-overrides.json: 6 existing pins updated. 2 new pins for generic English fragments ("Set", "Edit") whose value-level translation must stay unchanged everywhere else.
    • locale-key-overrides.mjs: the base ko entry for CommitMessageAiPane.4f722a5f53 is updated in place rather than hidden behind a second JSON pin.
    • locale-ko-value-overrides.mjs: the value override for "Pull requests, issues, and checks via the" is updated. That English string has a single call site, so no key pin is needed.

    Each fragment has exactly one override source. No code, English strings or other locales change.

Where Before After
Settings > Shortcuts 단축키를 시각적으로 사용자 정의하거나 편집하세요 ~/.orca/keybindings.json 직접. 단축키를 화면에서 바꾸거나 ~/.orca/keybindings.json 파일을 직접 편집하세요.
Repository > Hooks (orca.yaml has a setup script) 편집 orca.yaml 변경합니다. 바꾸려면 orca.yaml 파일을 편집하세요.
Repository > Hooks (no valid scripts) 예 orca.yaml 템플릿 예시 orca.yaml 템플릿
Settings > Git > Custom command ... 사용됩니다. 사용 {prompt} 명령 입력을 인수로 전달합니다. 그렇지 않으면 Orca가 이를 stdin에 파이프합니다. ... 사용됩니다. 명령 입력을 인수로 넘기려면 명령에 {prompt} 자리표시자를 넣으세요. 넣지 않으면 Orca가 입력을 stdin으로 전달합니다.
Settings > Privacy (DO_NOT_TRACK set) 텔레메트리는 다음에 의해 비활성화됩니다. DO_NOT_TRACK 환경 변수. ... 텔레메트리가 DO_NOT_TRACK 환경 변수 때문에 비활성화되어 있습니다. 다시 활성화하려면 변수 설정을 해제하고 다시 시작하세요.
Integrations > GitHub PR, 이슈 및 검사는 다음을 통해 이루어집니다. gh CLI. PR, 이슈, 검사를 지원하는 gh CLI.
Integrations > Azure DevOps 설정 ORCA_AZURE_DEVOPS_TOKEN, 또는 설정 ORCA_AZURE_DEVOPS_ACCESS_TOKEN. 설정하세요 ORCA_AZURE_DEVOPS_API_BASE_URL ... 사용하세요. 다음 환경 변수 중 하나를 설정하세요: ORCA_AZURE_DEVOPS_TOKEN, ORCA_AZURE_DEVOPS_ACCESS_TOKEN. Orca가 Git 원격에서 API 기본 URL을 추론할 수 없는 경우에만 ORCA_AZURE_DEVOPS_API_BASE_URL 환경 변수를 설정하세요.
Integrations > Gitea 공개 저장소는 Git 원격에서 감지됩니다. 설정하세요 ORCA_GITEA_TOKEN 비공개 저장소의 경우, 그리고 ... 공개 저장소는 Git 원격에서 감지됩니다. 비공개 저장소에는 ORCA_GITEA_TOKEN 환경 변수를 설정하고, Orca가 원격에서 API URL을 추론할 수 없는 경우에만 ORCA_GITEA_API_BASE_URL 환경 변수를 설정하세요.

Why

In Korean these help lines read as broken phrases. The Azure DevOps card, for example, told users to set variables in an order that made no sense. Changing only the Korean values fixes them without touching code. Turning each sentence into one rich-text message (as #28185 did for other settings help) would fix every language at once, but that is a much larger change across all locales. This PR is scoped to Korean.

The second part, one override source per fragment, matters because mergeLocaleKeyOverrides spreads the ko JSON pins over the base map, and repairTranslatedValue checks key overrides before value overrides. A second pin for the same fragment silently makes the other entry dead and leaves stale text behind for the next editor.

Linked Issue

Fixes #47809

Visual Proof

Before (main) and after (this branch) for all eight sentences. These are E2E builds of the real app with the UI set to 한국어, captured by @dbsghdz1 in #47810:

glued-sentences-compare

Testing

  • 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 test added, because this only changes catalog values. Verified on macOS:

  • Original: E2E builds of main and the branch, with the UI set to Korean. Each screen was opened and the assembled sentence read from the DOM: Shortcuts, Integrations (GitHub, Azure DevOps, Gitea), Privacy with DO_NOT_TRACK=1, Git > Custom command, and both Hooks states. The screenshot above shows the results.
  • git grep for each of the 17 hashes: each key has exactly one call site, and it is the sentence being fixed. None of the en or ko values contains interpolation placeholders or tags.
  • node config/scripts/locale-catalog/repair-locale-catalog.mjs --locale ko on current main + this change: all 17 values come out identical (0 mismatches). The script's other rewrites are existing drift on main and were discarded.
  • pnpm verify:localization-catalogs, pnpm verify:localization-protected-copy, and vitest run config/scripts/localization (4/4) pass.
  • oxfmt, oxlint (anti-slop and code-quality native), ast-grep, and the changed-code quality gate pass on the touched files.

Performance

None, because only static Korean catalog strings and build-time locale data change. They go through the same i18n lookup as before, with no new runtime, I/O, subprocess or polling work.

Risk

Level: Low

Only Korean text changes. If a wording is off, Korean users see that wording in these help lines. A plain revert backs it out.

Review

  • Cross-platform: text only.
  • SSH/remote: not affected.
  • Mobile: not touched. The phone app has its own catalog.
  • Security: Korean strings only.

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

Original fix by @dbsghdz1 in #47810. The commit keeps their authorship. Maintainer cleanup: one override source per fragment.

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)

@dbsghdz1

Copy link
Copy Markdown
Contributor Author

Before and after of the eight sentences in the real app: E2E builds of main and of this branch, UI set to 한국어. The Shortcuts path is covered because the isolated profile lives in a temp folder.

glued-sentences-compare

@coderabbitai

coderabbitai Bot commented Nov 23, 2026 •

Copy link
Copy Markdown
Contributor

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Korean locale files now use revised wording for custom commands, telemetry, repository hooks, keyboard shortcuts, GitHub CLI support, and Gitea and Azure DevOps setup. The credential guidance distinguishes token environment variables from API base URLs and describes when Orca can infer a URL from the Git remote.

Severity of issue fixed: Low

Merge Risk: Minimal · up to 7558a

This is a Korean-only copy update to settings help text. No functional risk was found, and a plain revert would back it out.

Pre-merge checks: Passed 4

Check name Status Explanation
Linked Issues check Passed Directly linked issue #47809 asks that the Korean fragments for eight settings sentences read in the correct order. The PR changes 17 Korean values in src/renderer/src/i18n/locales/ko.json (+17/-17 pe…
Out of Scope Changes check Passed The changes stay within the Korean copy for the linked issue. The config/scripts/locale-catalog/locale-ko-key-overrides.json and config/scripts/locale-catalog/locale-key-overrides.mjs edits pin the re…
Title check Passed The title names the main change: fixing Korean i18n settings sentences that are assembled from several translated fragments so they read correctly. The changeset updates Korean locale values (ko.json …
Description check Passed The description follows the repository template closely. It includes ELI5, What Changed (with before/after table), Why, Linked Issue (Fixes #47809), Visual Proof (comparison image referenced), Testing…
Full details: Linked Issues check

Explanation

Directly linked issue #47809 asks that the Korean fragments for eight settings sentences read in the correct order. The PR changes 17 Korean values in src/renderer/src/i18n/locales/ko.json (+17/-17 per the change summary). The PR description lists the before and after value for each key. The after values place the Korean text before or after the file name, variable, or command, which matches the English order. The config/scripts/locale-catalog/locale-ko-value-overrides.mjs diff confirms one such change (Pull requests, issues, and checks via the). The ko.json file diff could not be read, because the changed blob is missing from the checkout. The 17 values therefore rest on the PR description and the change summary, not on a direct diff read. Implementation covers the eight locations listed in #47809. The issue is limited to Korean, so no other locale is required. No coding requirement is unmet. Automated tests are not part of the PR; the issue names no test requirement. The author reports that a catalog check passes, which is not independently verified here.

Full details: Out of Scope Changes check

Explanation

The changes stay within the Korean copy for the linked issue. The config/scripts/locale-catalog/locale-ko-key-overrides.json and config/scripts/locale-catalog/locale-key-overrides.mjs edits pin the revised Korean values for the same keys, so repair-locale-catalog does not revert them. The locale-ko-value-overrides.mjs edit pins one revised value. The PR states that code, English strings, and other locales are unchanged. The ko.json diff could not be read to confirm that no other key changed, so that point rests on the PR description and the change summary.

Full details: Title check

Explanation

The title names the main change: fixing Korean i18n settings sentences that are assembled from several translated fragments so they read correctly. The changeset updates Korean locale values (ko.json and override files) for eight sentences that were broken by fragment ordering, which matches the title. The title is specific, under the length guidance only slightly, and uses a conventional fix(i18n) prefix. It does not mention the Korean scope, but that detail is acceptable for a title.

Full details: Description check

Explanation

The description follows the repository template closely. It includes ELI5, What Changed (with before/after table), Why, Linked Issue (Fixes #47809), Visual Proof (comparison image referenced), Testing with checkboxes and detailed verification steps, Performance with a completed 'None, because' line, Risk with level, AI Disclosure is omitted but is conditional on team membership, Review, Agent skill boundary, Notes, and a Checklist. Each section gives concrete, relevant content. The Visual Proof section links an image but the image is an attachment reference only, which is acceptable.

  • 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: 22d65e0e-3160-4967-a566-1a8bf4a3c571
Commits

Reviewing files that changed from the base of the PR and between 73ba7eb and 7558af2.

Files selected for processing: 2

  • config/scripts/locale-catalog/locale-key-overrides.mjs
  • config/scripts/locale-catalog/locale-ko-value-overrides.mjs

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

…ctly

Several settings help lines are assembled from separate translated
fragments around an inline code element (a file name or environment
variable). The Korean fragments were translated in isolation, so the
assembled sentences read in the wrong order. Rewrite the 17 Korean
fragments so each assembled sentence reads naturally, and keep exactly
one override source per fragment so repair-locale-catalog preserves
them.

Fixes stablyai#47809

Co-authored-by: Neil <[email protected]>
@nwparker
nwparker force-pushed the fix/ko-glued-sentences branch from 73ba7eb to 7558af2 Compare November 23, 2026 20:59
@nwparker nwparker changed the title fix(i18n): make Korean sentences built from several pieces read correctly fix(i18n): make Korean settings sentences built from several fragments read correctly Nov 23, 2026
@nwparker
nwparker merged commit 28aad9e into stablyai:main Nov 23, 2026
55 of 56 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.

[Bug]: Korean UI: sentences built from several translated pieces read in the wrong order

2 participants