Repository navigation
fix(i18n): make Korean settings sentences built from several fragments read correctly - #47810
Conversation
|
No actionable comments were generated in the recent review. Walkthrough
Severity of issue fixed: Low Merge Risk:
|
…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]>
73ba7eb to
7558af2
Compare

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 sorepair-locale-catalogkeeps 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 basekoentry forCommitMessageAiPane.4f722a5f53is 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.
~/.orca/keybindings.json직접.~/.orca/keybindings.json파일을 직접 편집하세요.orca.yamlhas a setup script)orca.yaml변경합니다.orca.yaml파일을 편집하세요.orca.yaml템플릿orca.yaml템플릿{prompt}명령 입력을 인수로 전달합니다. 그렇지 않으면 Orca가 이를 stdin에 파이프합니다.{prompt}자리표시자를 넣으세요. 넣지 않으면 Orca가 입력을 stdin으로 전달합니다.DO_NOT_TRACKset)DO_NOT_TRACK환경 변수. ...DO_NOT_TRACK환경 변수 때문에 비활성화되어 있습니다. 다시 활성화하려면 변수 설정을 해제하고 다시 시작하세요.ghCLI.ghCLI.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환경 변수를 설정하세요.ORCA_GITEA_TOKEN비공개 저장소의 경우, 그리고 ...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
mergeLocaleKeyOverridesspreads the ko JSON pins over the base map, andrepairTranslatedValuechecks 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:Testing
No test added, because this only changes catalog values. Verified on macOS:
mainand 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 withDO_NOT_TRACK=1, Git > Custom command, and both Hooks states. The screenshot above shows the results.git grepfor 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 koon currentmain+ this change: all 17 values come out identical (0 mismatches). The script's other rewrites are existing drift onmainand were discarded.pnpm verify:localization-catalogs,pnpm verify:localization-protected-copy, andvitest run config/scripts/localization(4/4) pass.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
Agent skill upstream boundary
Notes
Original fix by @dbsghdz1 in #47810. The commit keeps their authorship. Maintainer cleanup: one override source per fragment.
Checklist
N/Awith reasonpnpm lint,pnpm typecheck,pnpm test, andpnpm buildpass (or CI will cover; local preferred)