Skip to content

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

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

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

Conversation

@heeoneie

Copy link
Copy Markdown
Contributor

Summary

First Rust-side Korean localization PR, following the scope agreed in #3975. This replaces #6595, which was opened as a draft against rust-preview and closed automatically when that branch was removed after the switch to main (#7157). The change is the same, rebased onto main.

  • 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 and localizedPresentation fall back through ko as well.
  • The new test prints per-module coverage and checks that Korean copy keeps its English placeholders.
  • locale-common (33 of 190 keys) and locale-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. 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 on main and didn't run it.

Unused exports in plugins/shared are left untranslated.

Verification

On main at f0b9ec22d:

  • node --test products/maka/workbench/tests/*.test.mjs: 245 passed
  • biome check on the changed files: passed
  • tsc -p products/maka/bundle/tsconfig.json and tsc -p packages/plugin-sdk/tsconfig.acceptance.json: passed
  • The bundle project doesn't include the workbench catalogs, so I also ran tsc --noEmit --strict over every products/maka/workbench/app/locale-*.ts with plugins/shared/locale.ts: passed. A catalog entry missing zh-TW still fails with TS2322.
  • Loading the common and composer catalogs from main and from this branch: the en, zh-CN and zh-TW values are identical for every key.
  • Reverting plugins/shared/locale.ts makes 2 of the 4 new tests fail

On the earlier rust-preview base (#6595), and not repeated here:

  • node scripts/ci.mjs run contracts, node scripts/ci.mjs run product and node scripts/rust/build-cli.mjs: passed
  • LANG=ko_KR.UTF-8 maka terminal-shell, captured through a PTY:
  +  새 대화
  ◌  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, 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:

  • 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, drafted the translations, and resolved the rebase onto main. I reviewed the translations. The commit carries a Generated-by trailer.

Checklist

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

Does this PR entail a breaking change or persisted-data migration?

  • Yes — describe user/data impact, in-place migration, and upgrade_compat.rs coverage under Summary above
  • No

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 23, 2026

This branch has not been deployed

No deployments
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.

1 participant