Skip to content

feat(i18n-ko): add Korean workbench catalog with English fallback - #6595

Closed
heeoneie wants to merge 1 commit into
apache:rust-previewfrom
heeoneie:feat/i18n-ko-workbench-catalog
Closed

heeoneie wants to merge 1 commit into
apache:rust-previewfrom
heeoneie:feat/i18n-ko-workbench-catalog

Conversation

@heeoneie

@heeoneie heeoneie commented Nov 3, 2026

Copy link
Copy Markdown
Contributor

Summary

First Rust-side Korean localization PR, following the scope agreed in #3975.

  • Message gains an optional fourth slot: [en, zhCN, zhTW, ko?]. A key without Korean renders in English. zh-CN and zh-TW stay required by the type, and there are no English stubs in the ko slot.
  • languageIndex matches ko and ko-*, but not tags such as kok-IN. displayText falls back through ko as well.
  • The new test prints per-module coverage and checks that Korean copy keeps its English placeholders.
  • locale-common and locale-composer are translated, including the shared messages they reference. That is 63 of the 1,505 keys used by the workbench.

Refs #3975

Behavior during the rollout

Rust-owned copy stays English in Korean, as discussed in #3975. Language and LanguagePreference are unchanged, so:

  • Korean applies only when the preference is auto and the system locale is Korean. Korean is not in the language picker yet, and the wire format doesn't change.
  • A saved en, zh-CN or zh-TW preference still wins.
  • A deployment locale of ko-* still normalizes to en through LanguagePreference::from_locale, so it doesn't select Korean. I confirmed this by reading the code and didn't run it.

Unused exports in plugins/shared are left untranslated.

Verification

After rebasing onto 8a83fcff8:

  • node --test products/maka/workbench/tests/*.test.mjs: 86 passed
  • Biome format on the affected directories and tsc -p products/maka/bundle/tsconfig.json: passed

Before the rebase, on fa1b92765:

  • node scripts/ci.mjs run contracts, node scripts/ci.mjs run product and node scripts/rust/build-cli.mjs: passed
  • Biome lint on the changed files: passed
  • Reverting plugins/shared/locale.ts makes 2 of the 4 new tests fail
  • LANG=ko_KR.UTF-8 maka terminal-shell with a temporary HOME and Root, captured through a PTY and rendered with pyte:
  +  새 대화
  ◌  Maka Bot
   📁 All workspaces       ⌄
  ⌕  Search titles and…                                      Make something remarkable.
      Active       Archived
                                       📁 작업 공간 선택 ⌄     연결 및 모델
                                   │ Choose a workspace to begin…                     │

Not run: clippy, node scripts/ci.mjs run root 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. The desktop app is untested, and this draft has text output rather than a screenshot.

AI use

Select exactly one:

  • No generative tool made a substantive contribution
  • Generative tooling made a substantive contribution

Tool(s) and scope: Claude Code implemented the catalog change and test and drafted the translations. I reviewed the translations.

Checklist

  • Tests cover the change and fail without it
  • Lint, format, typecheck and the affected suites pass locally (see Verification for what wasn't run)

Does this PR entail a change in behavior?

  • Yes — described under Summary above
  • No

🤖 Generated with Claude Code

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]>
@github-actions github-actions Bot added the effort/M Under 500 readable lines label Nov 4, 2026
@M4n5ter
M4n5ter deleted the branch apache:rust-preview November 23, 2026 00:07
@M4n5ter M4n5ter closed this Nov 23, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

effort/M Under 500 readable lines

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants