Skip to content

feat(i18n): add Korean (ko) locale support#1002

Merged
mariusvniekerk merged 1 commit into
kenn-io:mainfrom
Leuconoe:feat/i18n-korean
Jul 6, 2026
Merged

feat(i18n): add Korean (ko) locale support#1002
mariusvniekerk merged 1 commit into
kenn-io:mainfrom
Leuconoe:feat/i18n-korean

Conversation

@Leuconoe

@Leuconoe Leuconoe commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

Closes #1001.

Adds a Korean (ko) locale alongside the existing English and Chinese catalogs.

What changed

  • frontend/messages/ko.json (new): full Korean catalog, key set aligned 1:1 with en. Plural messages mirror the Chinese catalogs' single-variant (countPlural=other) structure because Korean has no plural distinction; all {placeholder} tokens and escaped braces are preserved verbatim.
  • project.inlang/settings.json: ko added to locales.
  • src/lib/i18n/index.ts: ko added to SUPPORTED_LOCALES; normalizeLocale now matches ko and ko-* browser tags.
  • src/lib/components/settings/LanguageSettings.svelte: Korean option added to the language picker.
  • messages/{en,zh-CN,zh-TW}.json: new settings_language_korean label key, keeping all catalogs in sync per the AGENTS.md localization contract.
  • src/lib/i18n/i18n.test.ts: extended for the locale list, ko normalization, key alignment across all catalogs, and ko rendering / plural-variant selection.

Where to look

The translation quality and the plural-structure parity with the zh catalogs are the main review surface. normalizeLocale follows the same shape as the existing zh-CN / zh-TW branches.

Add a Korean message catalog and wire the ko locale through the i18n
runtime and the language settings UI.

- Add frontend/messages/ko.json with the full translated key set,
  mirroring the zh catalogs' single-variant structure for plural
  messages (Korean has no plural distinction)
- Register ko in project.inlang/settings.json and in SUPPORTED_LOCALES
- Match ko and ko-* browser tags in normalizeLocale
- Add the Korean option to LanguageSettings and a settings_language_korean
  key across the en, zh-CN, and zh-TW catalogs
- Extend the i18n tests for the locale list, normalization, key
  alignment, and ko rendering/plural variants
@roborev-ci

roborev-ci Bot commented Jul 6, 2026

Copy link
Copy Markdown

roborev: Combined Review (b554e1c)

No issues found.


Reviewers: 2 done | Synthesis: codex | Total: 2m20s

@mariusvniekerk mariusvniekerk merged commit a3b386e into kenn-io:main Jul 6, 2026
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

Add Korean (ko) locale support

2 participants