[PR #4235] [MERGED] Add the Polish documentation language pack #6296

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

📋 Pull Request Information

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

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


📝 Commits (4)

  • 60beddf Offer Polish as a documentation language
  • b27082d Reference #4235 in the changelog entry
  • 398b172 Merge branch 'staging' into agent/docs-language-pl
  • 5e8533e Merge remote-tracking branch 'origin/staging' into agent/merge-pr-4235

📊 Changes

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

View changed files

📝 CHANGELOG.md (+2 -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

Linked issue\n\nCloses #4258\n\n## Why

Language #6 of the plan to cover every interface language with a documentation pack, following Spanish (#4100), German (#4157), French (#4191), and Brazilian Portuguese (#4229). Content lives on the companion docs-i18n branch (pl/ + sha256 manifest) and downloads on demand — zero checkout or image weight.

What changed

  • packages/shared/src/constants/docs-languages.ts: pl: { label: "Polski", englishLabel: "Polish" }.
  • packages/client/src/components/modals/DocsViewerModal.tsx: Polish sidebar category labels (Przewodniki, Start, Połączenia, Postacie, Czaty, Ustawienia, …; mode names Conversation/Roleplay/Game Mode stay English to match the UI).
  • packages/client/src/components/panels/SettingsPanel.tsx: settings-search aliases "polish", "polski".
  • scripts/regressions/docs-language.regression.ts: Polish assertion.
  • CONTRIBUTING.md: Polish per-language conventions; CHANGELOG.md: Unreleased entry.
  • Companion (on docs-i18n, not part of this diff): pl/** — all 123 guides with a generated manifest.

Translation approach

Same naturalness-first method as the previous packs, with two Polish-specific policies decided up front:

  • Declension: Polish inflects nouns, and a declined product name fragments the literal substring search ("Marinarze" doesn't contain-match "Marinara"). Product names therefore stay frozen/undeclined, with a declinable carrier noun where the case demands ("w aplikacji Marinara Engine") — while assimilated loanwords decline normally, as real Polish requires (promptu, tokenów, czatów). The sweep audits for declined product-name forms mechanically.
  • Reader gendering: Polish past-tense verbs encode gender; the style brief mandates constructions that never force the reader's gender (present tense, imperatives, "można"/"warto").

Also: informal "ty" with second-person imperatives (matching the informal-register precedent across all packs and Polish consumer-software convention), the assimilated form czat standardized in prose, straight ASCII quotes only (never „…" — the app's own Quote style default is Straight, and mixed quote forms split search hits), no non-breaking spaces, English UI labels in bold with a one-time Polish gloss, and mechanical link-text↔H1 verification to zero paraphrases. Every file passed structural verification, the declension/address/typography/terminology sweeps, and an independent language-QA panel.

Validation done

  • pnpm check and pnpm regression:docs green (regression reports en, de, es, fr, pl, pt-br).
  • scripts/docs-i18n/validate-pack.mjs + build-manifest.mjs green on pl/.
  • Runtime-verified against a throwaway data dir with a materialized pack: viewer fully Polish (categories, titles, search with diacritics), Settings coverage counts, switch flows.

Summary by CodeRabbit

  • New Features

    • Added Polish (pl) as a documentation language option.
    • Polish documentation now shows Polish sidebar category headings, including translated in-app guide sections.
    • You can install it from Settings → General → Documentation Language → Download & Replace.
    • The “Documentation Language” setting can be found by searching “Polish” or “Polski”.
  • Documentation

    • Added Polish translation guidelines for 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/4235 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/29/2026 **Status:** ✅ Merged **Merged:** 7/29/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `agent/docs-language-pl` --- ### 📝 Commits (4) - [`60beddf`](https://github.com/Pasta-Devs/Marinara-Engine/commit/60beddfc8e955075170b4ada757151a3862ab889) Offer Polish as a documentation language - [`b27082d`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b27082d04f86f215573116a4316092cd23e01bc1) Reference #4235 in the changelog entry - [`398b172`](https://github.com/Pasta-Devs/Marinara-Engine/commit/398b17273e38ff69d7a3f5736a2d4be435a26bf2) Merge branch 'staging' into agent/docs-language-pl - [`5e8533e`](https://github.com/Pasta-Devs/Marinara-Engine/commit/5e8533ea4d1583993fc19b8738df51580a998339) Merge remote-tracking branch 'origin/staging' into agent/merge-pr-4235 ### 📊 Changes **6 files changed** (+28 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+2 -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 ## Linked issue\n\nCloses #4258\n\n## Why Language #6 of the plan to cover every interface language with a documentation pack, following Spanish (#4100), German (#4157), French (#4191), and Brazilian Portuguese (#4229). Content lives on the companion `docs-i18n` branch (`pl/` + sha256 manifest) and downloads on demand — zero checkout or image weight. ## What changed - `packages/shared/src/constants/docs-languages.ts`: `pl: { label: "Polski", englishLabel: "Polish" }`. - `packages/client/src/components/modals/DocsViewerModal.tsx`: Polish sidebar category labels (`Przewodniki`, `Start`, `Połączenia`, `Postacie`, `Czaty`, `Ustawienia`, …; mode names **Conversation**/**Roleplay**/**Game Mode** stay English to match the UI). - `packages/client/src/components/panels/SettingsPanel.tsx`: settings-search aliases `"polish"`, `"polski"`. - `scripts/regressions/docs-language.regression.ts`: Polish assertion. - `CONTRIBUTING.md`: Polish per-language conventions; `CHANGELOG.md`: Unreleased entry. - Companion (on `docs-i18n`, not part of this diff): `pl/**` — all 123 guides with a generated manifest. ## Translation approach Same naturalness-first method as the previous packs, with two Polish-specific policies decided up front: - **Declension**: Polish inflects nouns, and a declined product name fragments the literal substring search ("Marinarze" doesn't contain-match "Marinara"). Product names therefore stay **frozen/undeclined**, with a declinable carrier noun where the case demands ("w aplikacji Marinara Engine") — while assimilated loanwords decline normally, as real Polish requires (promptu, tokenów, czatów). The sweep audits for declined product-name forms mechanically. - **Reader gendering**: Polish past-tense verbs encode gender; the style brief mandates constructions that never force the reader's gender (present tense, imperatives, "można"/"warto"). Also: informal "ty" with second-person imperatives (matching the informal-register precedent across all packs and Polish consumer-software convention), the assimilated form **czat** standardized in prose, straight ASCII quotes only (never „…" — the app's own Quote style default is Straight, and mixed quote forms split search hits), no non-breaking spaces, English UI labels in bold with a one-time Polish gloss, and mechanical link-text↔H1 verification to zero paraphrases. Every file passed structural verification, the declension/address/typography/terminology sweeps, and an independent language-QA panel. ## Validation done - `pnpm check` and `pnpm regression:docs` green (regression reports `en, de, es, fr, pl, pt-br`). - `scripts/docs-i18n/validate-pack.mjs` + `build-manifest.mjs` green on `pl/`. - Runtime-verified against a throwaway data dir with a materialized pack: viewer fully Polish (categories, titles, search with diacritics), Settings coverage counts, switch flows. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Polish (`pl`) as a documentation language option. * Polish documentation now shows Polish sidebar category headings, including translated in-app guide sections. * You can install it from **Settings → General → Documentation Language → Download & Replace**. * The “Documentation Language” setting can be found by searching **“Polish”** or **“Polski”**. * **Documentation** * Added Polish translation guidelines for 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:09:04 +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#6296
No description provided.