[PR #4374] [MERGED] Offer Korean as a documentation language #6352

Closed
opened 2026-10-23 04:09:36 +07:00 by bsakaguchi · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4374
Author: @kolacheee
Created: 7/31/2026
Status: ✅ Merged
Merged: 7/31/2026
Merged by: @kolacheee

Base: staging ← Head: agent/docs-language-ko


📝 Commits (2)

  • 097c2d7 Offer Korean as a documentation language
  • 4222e42 Reference #4374 in the changelog entry

📊 Changes

6 files changed (+27 additions, -1 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 CONTRIBUTING.md (+1 -0)
📝 packages/client/src/components/modals/DocsViewerModal.tsx (+22 -0)
📝 packages/client/src/components/panels/SettingsPanel.tsx (+1 -1)
📝 packages/shared/src/constants/docs-languages.ts (+1 -0)
📝 scripts/regressions/docs-language.regression.ts (+1 -0)

📄 Description

Why

Korean is the next language on the documentation-translation roadmap (all UI Language locales get a docs pack; 한국어 follows Japanese). Korean-speaking users currently read all 123 in-app guides in English. This PR makes the guides available in natural Korean through the existing Settings → General → Documentation Language selector and the onboarding tutorial's language suggestion.

Follows up on #4100 (selector + pack architecture + Spanish), #4157 (German), #4191 (French), #4229 (Brazilian Portuguese), #4235 (Polish), #4281 (Russian), and #4345 (Japanese). The translated pack itself lives on the docs-i18n branch (pushed together with this PR); this Engine PR adds only the language wiring.

Companion PR: the docs review also surfaced defects in the app's shipped Korean UI translation (ko.json) — fixed separately on fix/ko-ui-translation-defects. The pack's UI-label glosses are aligned with the corrected strings, so that PR should land alongside this one.

What changed

  • packages/shared/src/constants/docs-languages.ts — ko: { label: "한국어", englishLabel: "Korean" } (byte-matched to the Language dropdown's Intl.DisplayNames output; capitalization no-op verified).
  • packages/client/src/components/modals/DocsViewerModal.tsx — Korean sidebar category labels (가이드, 홈, 설치, 연결, 캐릭터, 채팅, 로어북, 에이전트, 미디어, 프롬프트, 모양, 설정, 데이터, 확장, 연동, 개발; mode names and Noodle stay English).
  • packages/client/src/components/panels/SettingsPanel.tsx — settings-search aliases korean, 한국어.
  • scripts/regressions/docs-language.regression.ts — asserts Korean stays offered.
  • CONTRIBUTING.md — Korean translation-convention bullet (see below).
  • CHANGELOG.md — release-notes entry under [Unreleased].

No server changes are needed per language: the pack list, download URL, verification, and serving all derive from the shared label map.

Korean conventions (documented in CONTRIBUTING)

Because the in-app docs search is literal substring matching, the pack enforces one spelling, one spacing, and search-safe text end to end:

  • 합니다체 register (the universal Korean software-documentation convention) with ~하세요 imperatives and noun-phrase headings; never 당신 (Korean drops subjects, and 당신 reads confrontational in docs).
  • Product names stay in Latin script with phonetically correct particle attachment ("Marinara Engine은", "HUD와" — a batchim classifier audited all 882 name+particle sites and fixed 63 wrong particles).
  • One transcription per term (메시지 never 메세지, 콘텐츠 never 컨텐츠, 데이터 never 데이타, 릴리스 never 릴리즈) and one spacing per compound (캐릭터 카드, 새로고침, 미리보기 — either split fragments the search index).
  • UI-label glosses match the app's shipped Korean UI translation (ko.json, ~90% complete) where a string exists — a reader on the Korean UI finds controls by the gloss, a reader on the English UI by the bold English label. The pack carries 2,300+ such glosses.
  • All Latin letters and digits half-width ASCII; no ideographic space, no NBSP, straight ASCII quotes; text NFC-normalized — macOS-decomposed Hangul jamo are byte-different and would silently break substring search.

Validation performed

  • Translation pipeline: 123 files through translate → structural verify (NFC, jamo, full-width bans, byte-identical code fences, heading/link-target/table parity) → fix → re-verify, then a consistency sweep (transcription and compound-spacing audits, the particle census, link-text↔H1 driven from 163 mismatches to 0, cross-file heading normalization).
  • A systematic gloss audit added 1,381 missing ko.json-aligned glosses; four independent native-reader QA panels read all 123 files end-to-end (~150 further fixes: mistranslations like a self-contradictory extension instruction and a poker "Check" glossed as confirm, 번역투 rewrites, term-split closures); a final reconciliation resolved every cross-panel conflict (런처 unification with recorded rationale, 스냅샷, the particle-after-gloss convention normalized across 803 sites).
  • An adversarial engine-diff review verified the change surface file-for-file against the sibling PRs' shape, executed the label byte-match and matcher simulations, and audited the changelog's factual claims.
  • node scripts/docs-i18n/validate-pack.mjs passes for all eight packs against current staging; committed git blobs re-hashed against every manifest (0 mismatches).
  • pnpm regression:docs passes (languages en, de, es, fr, ja, ko, pl, pt-br, ru); pnpm check passes.
  • Runtime-verified on a smoke server with the pack materialized as installed, including Hangul search checks (프롬프트, 연결, 로어북 queries through the API and viewer, highlight behavior, and an NFD-input probe confirming the NFC mandate).
  • The companion docs-i18n push also carries a catch-up mirroring 8 recently-drifted guides into all packs, so every language ships current with this Engine PR.

🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/Pasta-Devs/Marinara-Engine/pull/4374 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/31/2026 **Status:** ✅ Merged **Merged:** 7/31/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `agent/docs-language-ko` --- ### 📝 Commits (2) - [`097c2d7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/097c2d777a4b21ac0b944b03d434d01e1449d524) Offer Korean as a documentation language - [`4222e42`](https://github.com/Pasta-Devs/Marinara-Engine/commit/4222e42eed7cf1984b2cb5ae407f15b8e78b4e20) Reference #4374 in the changelog entry ### 📊 Changes **6 files changed** (+27 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `CONTRIBUTING.md` (+1 -0) 📝 `packages/client/src/components/modals/DocsViewerModal.tsx` (+22 -0) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+1 -1) 📝 `packages/shared/src/constants/docs-languages.ts` (+1 -0) 📝 `scripts/regressions/docs-language.regression.ts` (+1 -0) </details> ### 📄 Description ## Why Korean is the next language on the documentation-translation roadmap (all UI `Language` locales get a docs pack; 한국어 follows Japanese). Korean-speaking users currently read all 123 in-app guides in English. This PR makes the guides available in natural Korean through the existing **Settings → General → Documentation Language** selector and the onboarding tutorial's language suggestion. Follows up on #4100 (selector + pack architecture + Spanish), #4157 (German), #4191 (French), #4229 (Brazilian Portuguese), #4235 (Polish), #4281 (Russian), and #4345 (Japanese). The translated pack itself lives on the `docs-i18n` branch (pushed together with this PR); this Engine PR adds only the language wiring. Companion PR: the docs review also surfaced defects in the app's shipped Korean UI translation (`ko.json`) — fixed separately on `fix/ko-ui-translation-defects`. The pack's UI-label glosses are aligned with the *corrected* strings, so that PR should land alongside this one. ## What changed - `packages/shared/src/constants/docs-languages.ts` — `ko: { label: "한국어", englishLabel: "Korean" }` (byte-matched to the **Language** dropdown's `Intl.DisplayNames` output; capitalization no-op verified). - `packages/client/src/components/modals/DocsViewerModal.tsx` — Korean sidebar category labels (가이드, 홈, 설치, 연결, 캐릭터, 채팅, 로어북, 에이전트, 미디어, 프롬프트, 모양, 설정, 데이터, 확장, 연동, 개발; mode names and Noodle stay English). - `packages/client/src/components/panels/SettingsPanel.tsx` — settings-search aliases `korean`, `한국어`. - `scripts/regressions/docs-language.regression.ts` — asserts Korean stays offered. - `CONTRIBUTING.md` — Korean translation-convention bullet (see below). - `CHANGELOG.md` — release-notes entry under `[Unreleased]`. No server changes are needed per language: the pack list, download URL, verification, and serving all derive from the shared label map. ## Korean conventions (documented in CONTRIBUTING) Because the in-app docs search is literal substring matching, the pack enforces one spelling, one spacing, and search-safe text end to end: - **합니다체 register** (the universal Korean software-documentation convention) with ~하세요 imperatives and noun-phrase headings; never 당신 (Korean drops subjects, and 당신 reads confrontational in docs). - **Product names stay in Latin script** with **phonetically correct particle attachment** ("Marinara Engine은", "HUD와" — a batchim classifier audited all 882 name+particle sites and fixed 63 wrong particles). - **One transcription per term** (메시지 never 메세지, 콘텐츠 never 컨텐츠, 데이터 never 데이타, 릴리스 never 릴리즈) and **one spacing per compound** (캐릭터 카드, 새로고침, 미리보기 — either split fragments the search index). - **UI-label glosses match the app's shipped Korean UI translation** (`ko.json`, ~90% complete) where a string exists — a reader on the Korean UI finds controls by the gloss, a reader on the English UI by the bold English label. The pack carries 2,300+ such glosses. - **All Latin letters and digits half-width ASCII**; no ideographic space, no NBSP, straight ASCII quotes; **text NFC-normalized** — macOS-decomposed Hangul jamo are byte-different and would silently break substring search. ## Validation performed - Translation pipeline: 123 files through translate → structural verify (NFC, jamo, full-width bans, byte-identical code fences, heading/link-target/table parity) → fix → re-verify, then a consistency sweep (transcription and compound-spacing audits, the particle census, link-text↔H1 driven from 163 mismatches to 0, cross-file heading normalization). - A systematic gloss audit added 1,381 missing ko.json-aligned glosses; four independent native-reader QA panels read all 123 files end-to-end (~150 further fixes: mistranslations like a self-contradictory extension instruction and a poker "Check" glossed as *confirm*, 번역투 rewrites, term-split closures); a final reconciliation resolved every cross-panel conflict (런처 unification with recorded rationale, 스냅샷, the particle-after-gloss convention normalized across 803 sites). - An adversarial engine-diff review verified the change surface file-for-file against the sibling PRs' shape, executed the label byte-match and matcher simulations, and audited the changelog's factual claims. - `node scripts/docs-i18n/validate-pack.mjs` passes for all eight packs against current `staging`; committed git blobs re-hashed against every manifest (0 mismatches). - `pnpm regression:docs` passes (`languages en, de, es, fr, ja, ko, pl, pt-br, ru`); `pnpm check` passes. - Runtime-verified on a smoke server with the pack materialized as installed, including Hangul search checks (프롬프트, 연결, 로어북 queries through the API and viewer, highlight behavior, and an NFD-input probe confirming the NFC mandate). - The companion `docs-i18n` push also carries a catch-up mirroring 8 recently-drifted guides into all packs, so every language ships current with this Engine PR. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:09:36 +07:00
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
Pasta-Devs/Marinara-Engine#6352
No description provided.