[PR #4191] [MERGED] Add the French documentation language pack #6275

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

📋 Pull Request Information

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

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


📝 Commits (5)

  • 9fb54c3 Offer French as a documentation language
  • db8ed4b Capitalize native language names in the Language dropdown
  • f105d0e Merge remote-tracking branch 'origin/staging' into agent/docs-language-fr
  • 2a9c0a5 Reference #4191 in the changelog entries
  • 2a35b8f Merge branch 'staging' into agent/docs-language-fr

📊 Changes

7 files changed (+35 additions, -4 deletions)

View changed files

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

📄 Description

Why

Language #4 in the FIGS(P) → CJK rollout, following Spanish (#4100) and German (#4157). Engine side is the established two-line recipe (label row + sidebar labels, plus search aliases); the content lives on the companion docs-i18n branch (fr/ + sha256 manifest) and downloads on demand, adding zero checkout or image weight.

There is no linked issue/feature request yet — one should be opened and linked before this PR is submitted.

Merge ordering: the updated docs-i18n branch (with fr/) must be pushed before this PR merges, or picking Français will fail with a clean 502 until it exists.

What changed

  • packages/shared/src/constants/docs-languages.ts: fr: { label: "Français", englishLabel: "French" } — gates the pack and lists Français in the Settings selector and tutorial picker.
  • packages/client/src/components/modals/DocsViewerModal.tsx: French sidebar category labels (Guides, Accueil, Connexions, Personnages, Paramètres, …; mode names Conversation/Roleplay/Game Mode stay English to match the UI).
  • packages/client/src/components/panels/SettingsPanel.tsx: settings-search aliases "french", "français".
  • scripts/regressions/docs-language.regression.ts: French assertion.
  • CONTRIBUTING.md: French per-language conventions; CHANGELOG.md: Unreleased entry.
  • Companion (on docs-i18n, not part of this diff): fr/** — all 123 guides in French with a generated manifest.

Everything else — download, verification, atomic install, pack replacement, Fix, boot auto-refresh, EN-badge fallback, coverage counts — picks French up automatically from the label row.

Translation approach

Same naturalness-first method as German (which addressed the literalness critique of the Spanish pack): a glossary/style brief with an explicit anti-calque table, consistent tutoiement (matching the app's warm tone and the tú/du precedent), false-friend guardrails (librairie/bibliothèque, éventuellement, actuellement), community loanwords with genders (le prompt, le token, le lorebook) and NPC → PNJ, and UI control names kept in English bold with a one-time French gloss. Deliberate typography decisions favor the product over strict print convention: plain ASCII spaces before double punctuation and straight quotes/apostrophes, because non-breaking spaces and guillemets would break the literal substring search and copy-paste (documented in CONTRIBUTING). Every file passed structural verification (byte-identical code fences and link targets, heading parity, LF-only), an address-form/typography/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 green on fr/ (no orphans, full coverage, valid hashes, no CRLF, no added images).
  • Runtime-verified against a throwaway data dir with a materialized French pack: viewer fully French (categories, titles, search), Settings coverage counts, switch flows.

Summary by CodeRabbit

  • New Features

    • Added French as a documentation language, including localized category labels and searchable language settings.
    • French documentation support includes installation and replacement guidance.
  • Improvements

    • Language names in settings now appear as capitalized native-language names, such as Español, Français, and Русский.
    • Expanded French translation guidelines for documentation contributors.

🔄 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/4191 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/27/2026 **Status:** ✅ Merged **Merged:** 7/28/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/docs-language-fr` --- ### 📝 Commits (5) - [`9fb54c3`](https://github.com/Pasta-Devs/Marinara-Engine/commit/9fb54c326165ef3cbab6e3bc03c41411a9a7c9c6) Offer French as a documentation language - [`db8ed4b`](https://github.com/Pasta-Devs/Marinara-Engine/commit/db8ed4b9acf449c932a580cefac3f3cbb7fc17d4) Capitalize native language names in the Language dropdown - [`f105d0e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/f105d0e927df2c3352ee55a4b5b2e24afabcaf71) Merge remote-tracking branch 'origin/staging' into agent/docs-language-fr - [`2a9c0a5`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2a9c0a57c0edc92b08c3084650cc098ac12b6936) Reference #4191 in the changelog entries - [`2a35b8f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/2a35b8fd8c74a9f52b2dd7555351f3b866835db3) Merge branch 'staging' into agent/docs-language-fr ### 📊 Changes **7 files changed** (+35 additions, -4 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -0) 📝 `CONTRIBUTING.md` (+1 -0) 📝 `packages/client/src/components/modals/DocsViewerModal.tsx` (+24 -2) 📝 `packages/client/src/components/panels/SettingsPanel.tsx` (+1 -1) 📝 `packages/client/src/localization/locale-loader.ts` (+5 -1) 📝 `packages/shared/src/constants/docs-languages.ts` (+1 -0) 📝 `scripts/regressions/docs-language.regression.ts` (+1 -0) </details> ### 📄 Description ## Why Language #4 in the FIGS(P) → CJK rollout, following Spanish (#4100) and German (#4157). Engine side is the established two-line recipe (label row + sidebar labels, plus search aliases); the content lives on the companion `docs-i18n` branch (`fr/` + sha256 manifest) and downloads on demand, adding zero checkout or image weight. There is no linked issue/feature request yet — one should be opened and linked before this PR is submitted. **Merge ordering:** the updated `docs-i18n` branch (with `fr/`) must be pushed before this PR merges, or picking Français will fail with a clean 502 until it exists. ## What changed - `packages/shared/src/constants/docs-languages.ts`: `fr: { label: "Français", englishLabel: "French" }` — gates the pack and lists Français in the Settings selector and tutorial picker. - `packages/client/src/components/modals/DocsViewerModal.tsx`: French sidebar category labels (`Guides`, `Accueil`, `Connexions`, `Personnages`, `Paramètres`, …; mode names **Conversation**/**Roleplay**/**Game Mode** stay English to match the UI). - `packages/client/src/components/panels/SettingsPanel.tsx`: settings-search aliases `"french"`, `"français"`. - `scripts/regressions/docs-language.regression.ts`: French assertion. - `CONTRIBUTING.md`: French per-language conventions; `CHANGELOG.md`: Unreleased entry. - Companion (on `docs-i18n`, not part of this diff): `fr/**` — all 123 guides in French with a generated manifest. Everything else — download, verification, atomic install, pack replacement, Fix, boot auto-refresh, EN-badge fallback, coverage counts — picks French up automatically from the label row. ## Translation approach Same naturalness-first method as German (which addressed the literalness critique of the Spanish pack): a glossary/style brief with an explicit anti-calque table, consistent **tutoiement** (matching the app's warm tone and the tú/du precedent), false-friend guardrails (librairie/bibliothèque, éventuellement, actuellement), community loanwords with genders (le prompt, le token, le lorebook) and NPC → **PNJ**, and UI control names kept in English bold with a one-time French gloss. Deliberate typography decisions favor the product over strict print convention: plain ASCII spaces before double punctuation and straight quotes/apostrophes, because non-breaking spaces and guillemets would break the literal substring search and copy-paste (documented in CONTRIBUTING). Every file passed structural verification (byte-identical code fences and link targets, heading parity, LF-only), an address-form/typography/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` green on `fr/` (no orphans, full coverage, valid hashes, no CRLF, no added images). - Runtime-verified against a throwaway data dir with a materialized French pack: viewer fully French (categories, titles, search), Settings coverage counts, switch flows. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added French as a documentation language, including localized category labels and searchable language settings. * French documentation support includes installation and replacement guidance. * **Improvements** * Language names in settings now appear as capitalized native-language names, such as Español, Français, and Русский. * Expanded French translation guidelines for documentation contributors. <!-- 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:50 +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#6275
No description provided.