Repository navigation
Conversation
Add an optional Korean slot to catalog messages. Keys without a Korean translation render in English, while zh-CN and zh-TW stay required. Translate the common and composer catalogs. Korean applies when the system locale is ko or ko-*. Rust-owned copy stays English during the rollout. Refs apache#3975 Generated-by: Claude Code (claude-opus-5-5) Co-Authored-By: Claude Opus 5.5 <[email protected]>
4 tasks
This branch has not been deployed
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Summary
First Rust-side Korean localization PR, following the scope agreed in #3975. This replaces #6595, which was opened as a draft against
rust-previewand closed automatically when that branch was removed after the switch tomain(#7157). The change is the same, rebased ontomain.Messagegains an optional fourth slot:[en, zhCN, zhTW, ko?]. A key without Korean renders in English.zh-CNandzh-TWstay required by the type, and there are no English stubs in thekoslot.languageIndexmatcheskoandko-*, but not tags such askok-IN.displayTextandlocalizedPresentationfall back throughkoas well.locale-common(33 of 190 keys) andlocale-composer(29 of 87) are translated, including the shared messages they reference. The other 17 workbench catalog modules stay English for now.Refs #3975
Behavior during the rollout
Rust-owned copy stays English in Korean, as discussed in #3975.
LanguageandLanguagePreferenceare unchanged, so:autoand the system locale is Korean. Korean is not in the language picker yet, and the wire format doesn't change.en,zh-CNorzh-TWpreference still wins.ko-*still normalizes toenthroughLanguagePreference::from_locale, so it doesn't select Korean. I confirmed this by reading the code onmainand didn't run it.Unused exports in
plugins/sharedare left untranslated.Verification
On
mainatf0b9ec22d:node --test products/maka/workbench/tests/*.test.mjs: 245 passedbiome checkon the changed files: passedtsc -p products/maka/bundle/tsconfig.jsonandtsc -p packages/plugin-sdk/tsconfig.acceptance.json: passedtsc --noEmit --strictover everyproducts/maka/workbench/app/locale-*.tswithplugins/shared/locale.ts: passed. A catalog entry missingzh-TWstill fails with TS2322.commonandcomposercatalogs frommainand from this branch: theen,zh-CNandzh-TWvalues are identical for every key.plugins/shared/locale.tsmakes 2 of the 4 new tests failOn the earlier
rust-previewbase (#6595), and not repeated here:node scripts/ci.mjs run contracts,node scripts/ci.mjs run productandnode scripts/rust/build-cli.mjs: passedLANG=ko_KR.UTF-8 maka terminal-shell, captured through a PTY:Not run:
clippy,node scripts/ci.mjs run root, the Rust build on this base, and the desktop app. This change has no Rust source edits, but the catalogs are embedded in the build, so I'd rely on CI for those.AI use
Select exactly one:
Tool(s) and scope: Claude Code implemented the catalog change and test, drafted the translations, and resolved the rebase onto
main. I reviewed the translations. The commit carries aGenerated-bytrailer.Checklist
Does this PR entail a breaking change or persisted-data migration?
upgrade_compat.rscoverage under Summary aboveDoes this PR entail a change in behavior?
🤖 Generated with Claude Code