[PR #4157] [MERGED] Add the German documentation language pack #6256

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • eb085fd Offer German as a documentation language
  • 7a44fe0 Reference #4157 in the changelog entry

📊 Changes

6 files changed (+32 additions, -4 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 CONTRIBUTING.md (+3 -1)
📝 packages/client/src/components/modals/DocsViewerModal.tsx (+25 -2)
📝 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

Spanish (#4100) validated the Documentation Language system with international users; German is language #3 in the planned FIGS(P) → CJK rollout. This PR is the Engine side of the two-line recipe that system was designed for: one label row plus one sidebar-label map. The content itself lives on the companion docs-i18n branch (de/ + sha256 manifest) and is downloaded on demand, so it adds zero checkout or image weight.

What changed

  • packages/shared/src/constants/docs-languages.ts: de: { label: "Deutsch", englishLabel: "German" } — this is what makes German appear in the Settings selector and the tutorial picker, and what gates its pack for download.
  • packages/client/src/components/modals/DocsViewerModal.tsx: German sidebar category labels (Anleitungen, Start, Verbindungen, …; the mode names Conversation/Roleplay/Game Mode stay English to match the UI).
  • CHANGELOG.md: Unreleased entry.
  • Companion (already on docs-i18n, not part of this diff): de/** — all 123 guides translated into standard German with a generated manifest.

Everything else — download, verification, atomic install, pack replacement, Fix, boot auto-refresh, EN-badge fallback, coverage counts — picks German up automatically from the label row; no other code paths change.

Translation approach

Building on the Spanish feedback that some pages read too literally, the German pack was produced against a glossary/style brief that makes natural, idiomatic phrasing the top rule (with an explicit anti-calque table), uses informal lowercase du consistently (matching the app's warm tone and modern German consumer-software convention), keeps the German LLM/roleplay community's English loanwords with correct genders and Duden-style compound hyphenation (der Prompt, das Token, das Lorebook, „Lorebook-Eintrag"), and keeps UI control names in English bold with a one-time German gloss so instructions can be followed against the English interface. One standardized term per concept preserves the hit-count search. Every file passed structural verification (byte-identical code fences and link targets, heading parity, LF-only), an address-form and terminology sweep, and an independent language-QA panel.

Validation done

  • pnpm check and pnpm regression:docs green on the merged tree.
  • scripts/docs-i18n/validate-pack.mjs + build-manifest.mjs pass on the de/ pack (no orphans, full coverage, valid hashes, no CRLF, no added images).
  • Runtime-verified against a throwaway data dir with a materialized German pack: viewer fully German (categories, titles, search), Settings coverage counts, switch flows es↔de↔en with pack replacement.

Summary by CodeRabbit

  • New Features

    • Added German documentation language support, including translated in-app guide navigation and category labels.
    • German documentation can be installed from Settings → General → Documentation Language using Download & Replace.
    • Improved settings search so German terms such as “German” and “Deutsch” find the documentation language option.
  • Documentation

    • Updated translation guidance with German-specific language conventions.

🔄 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/4157 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/27/2026 **Status:** ✅ Merged **Merged:** 7/27/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/docs-language-de` --- ### 📝 Commits (2) - [`eb085fd`](https://github.com/Pasta-Devs/Marinara-Engine/commit/eb085fd27b2814be90e46a424c4e1d7a10049e41) Offer German as a documentation language - [`7a44fe0`](https://github.com/Pasta-Devs/Marinara-Engine/commit/7a44fe021382f7163166588a1ba3724da99276b0) Reference #4157 in the changelog entry ### 📊 Changes **6 files changed** (+32 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `CONTRIBUTING.md` (+3 -1) 📝 `packages/client/src/components/modals/DocsViewerModal.tsx` (+25 -2) 📝 `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 Spanish (#4100) validated the Documentation Language system with international users; German is language #3 in the planned FIGS(P) → CJK rollout. This PR is the Engine side of the two-line recipe that system was designed for: one label row plus one sidebar-label map. The content itself lives on the companion `docs-i18n` branch (`de/` + sha256 manifest) and is downloaded on demand, so it adds zero checkout or image weight. ## What changed - `packages/shared/src/constants/docs-languages.ts`: `de: { label: "Deutsch", englishLabel: "German" }` — this is what makes German appear in the Settings selector and the tutorial picker, and what gates its pack for download. - `packages/client/src/components/modals/DocsViewerModal.tsx`: German sidebar category labels (`Anleitungen`, `Start`, `Verbindungen`, …; the mode names **Conversation**/**Roleplay**/**Game Mode** stay English to match the UI). - `CHANGELOG.md`: Unreleased entry. - Companion (already on `docs-i18n`, not part of this diff): `de/**` — all 123 guides translated into standard German with a generated manifest. Everything else — download, verification, atomic install, pack replacement, Fix, boot auto-refresh, EN-badge fallback, coverage counts — picks German up automatically from the label row; no other code paths change. ## Translation approach Building on the Spanish feedback that some pages read too literally, the German pack was produced against a glossary/style brief that makes **natural, idiomatic phrasing the top rule** (with an explicit anti-calque table), uses informal lowercase **du** consistently (matching the app's warm tone and modern German consumer-software convention), keeps the German LLM/roleplay community's English loanwords with correct genders and Duden-style compound hyphenation (der Prompt, das Token, das Lorebook, „Lorebook-Eintrag"), and keeps UI control names in English bold with a one-time German gloss so instructions can be followed against the English interface. One standardized term per concept preserves the hit-count search. Every file passed structural verification (byte-identical code fences and link targets, heading parity, LF-only), an address-form and terminology sweep, and an independent language-QA panel. ## Validation done - `pnpm check` and `pnpm regression:docs` green on the merged tree. - `scripts/docs-i18n/validate-pack.mjs` + `build-manifest.mjs` pass on the `de/` pack (no orphans, full coverage, valid hashes, no CRLF, no added images). - Runtime-verified against a throwaway data dir with a materialized German pack: viewer fully German (categories, titles, search), Settings coverage counts, switch flows es↔de↔en with pack replacement. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit - **New Features** - Added German documentation language support, including translated in-app guide navigation and category labels. - German documentation can be installed from **Settings → General → Documentation Language** using **Download & Replace**. - Improved settings search so German terms such as “German” and “Deutsch” find the documentation language option. - **Documentation** - Updated translation guidance with German-specific language conventions. <!-- end of auto-generated comment: release notes by coderabbit.ai --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:08:40 +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#6256
No description provided.