[PR #4281] [MERGED] Offer Russian as a documentation language #6317

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

📋 Pull Request Information

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

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


📝 Commits (2)

  • b82588f Offer Russian as a documentation language
  • 43090bc Reference #4281 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

Russian is the next language on the documentation-translation roadmap (all UI Language locales get a docs pack; Русский follows Polish). Russian-speaking users — a large share of the SillyTavern-adjacent community Marinara draws from — currently read all 123 in-app guides in English. This PR makes the guides available in natural Russian 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), and #4235 (Polish). The translated pack itself lives on the docs-i18n branch (pushed together with this PR); this Engine PR adds only the language wiring.

What changed

  • packages/shared/src/constants/docs-languages.ts — ru: { label: "Русский", englishLabel: "Russian" }. The label byte-matches what the capitalized Language dropdown renders via Intl.DisplayNames (verified by executing the same code path on the repo's Node).
  • packages/client/src/components/modals/DocsViewerModal.tsx — Russian sidebar category labels (Руководства, Установка, Подключения, Персонажи, Чаты, Лорбуки, Агенты, Медиа, Промпты, Оформление, Настройки, Данные, Расширения, Интеграции, Разработка; mode names and Noodle stay English, matching the interface).
  • packages/client/src/components/panels/SettingsPanel.tsx — settings-search aliases russian, русский.
  • scripts/regressions/docs-language.regression.ts — asserts Russian stays offered.
  • CONTRIBUTING.md — Russian 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.

Russian conventions (documented in CONTRIBUTING)

  • Lowercase "вы" with its imperative ("Нажмите", "Откройте") — mainstream Russian software convention (Yandex, VK, Telegram all use it), unlike the informal register of the de/fr/pt-br/pl packs; Russian "ты" reads noticeably over-familiar in app documentation. The plural agreement of "вы" also keeps every sentence gender-neutral for free. Never capitalized "Вы" mid-sentence.
  • Product names stay in Latin script and undeclined, with a carrier noun taking the case ("в приложении Marinara Engine", never "в Маринаре") — a declined or Cyrillicized name breaks the literal-substring docs search.
  • Community-standard Cyrillic loanwords decline normally: промпт, токен, пресет, лорбук (the RU SillyTavern community's own term), чат, свайп, спрайт, виджет, трекер. Case endings are suffixes, so the searchable stem survives declension.
  • En dashes (–) wherever Russian grammar wants тире; em dashes banned pack-wide. Straight ASCII quotes only (never «ёлочки»), no non-breaking spaces, "е" instead of "ё" except in всё/всём/всё-таки — one spelling per word keeps search deterministic.
  • UI control names stay in English bold exactly as rendered, with a one-time Russian gloss per document.

Validation performed

  • node scripts/docs-i18n/build-manifest.mjs ru + node scripts/docs-i18n/validate-pack.mjs ru — 123/123 files mirror the English tree; link targets, code fences, and heading structure verified byte-identical; committed git blobs re-hashed against the manifest (0 mismatches), so download verification will pass.
  • pnpm regression:docs — passes (languages en, de, es, fr, pl, pt-br, ru).
  • pnpm check — passes (impeccable, localization, lint, build).
  • Runtime-verified on a smoke server with the pack materialized as installed: status endpoint reports active: ru, integrity ok, 123/123; Russian serves for user and developer docs; ?lang=en override still serves English; Cyrillic search returns ranked results ("промпт" → 73 guides, "подключение" → 68); the docs viewer shows Russian titles and all 20 Russian category labels; the Settings selector shows Русский active.
  • Translation QA: every file structurally verified against its English source (headings, tables, fences, link targets); four independent native-reader review panels read all 123 files end-to-end against the English source and fixed ~250 issues (mistranslations, calques, terminology drift); a final consistency sweep drove link-text↔H1 paraphrases to 0 and unified repeated section headings so search ranking stays coherent.

Summary by CodeRabbit

  • New Features

    • Added Russian as a documentation language.
    • Russian translations cover in-app guides, including developer documentation.
    • Added localized Russian labels for documentation navigation.
    • Russian documentation can be installed from Settings → General → Documentation Language using Download & Replace.
  • Improvements

    • Settings search now recognizes English and Russian terms for the documentation language option.

🔄 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/4281 **Author:** [@kolacheee](https://github.com/kolacheee) **Created:** 7/30/2026 **Status:** ✅ Merged **Merged:** 7/30/2026 **Merged by:** [@kolacheee](https://github.com/kolacheee) **Base:** `staging` ← **Head:** `agent/docs-language-ru` --- ### 📝 Commits (2) - [`b82588f`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b82588f77e712aaad11d82d730bf642cb58730bc) Offer Russian as a documentation language - [`43090bc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/43090bc77d5c362457565f80c674153b3a0f417a) Reference #4281 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 Russian is the next language on the documentation-translation roadmap (all UI `Language` locales get a docs pack; Русский follows Polish). Russian-speaking users — a large share of the SillyTavern-adjacent community Marinara draws from — currently read all 123 in-app guides in English. This PR makes the guides available in natural Russian 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), and #4235 (Polish). The translated pack itself lives on the `docs-i18n` branch (pushed together with this PR); this Engine PR adds only the language wiring. ## What changed - `packages/shared/src/constants/docs-languages.ts` — `ru: { label: "Русский", englishLabel: "Russian" }`. The label byte-matches what the capitalized **Language** dropdown renders via `Intl.DisplayNames` (verified by executing the same code path on the repo's Node). - `packages/client/src/components/modals/DocsViewerModal.tsx` — Russian sidebar category labels (Руководства, Установка, Подключения, Персонажи, Чаты, Лорбуки, Агенты, Медиа, Промпты, Оформление, Настройки, Данные, Расширения, Интеграции, Разработка; mode names and Noodle stay English, matching the interface). - `packages/client/src/components/panels/SettingsPanel.tsx` — settings-search aliases `russian`, `русский`. - `scripts/regressions/docs-language.regression.ts` — asserts Russian stays offered. - `CONTRIBUTING.md` — Russian 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. ## Russian conventions (documented in CONTRIBUTING) - **Lowercase "вы"** with its imperative ("Нажмите", "Откройте") — mainstream Russian software convention (Yandex, VK, Telegram all use it), unlike the informal register of the de/fr/pt-br/pl packs; Russian "ты" reads noticeably over-familiar in app documentation. The plural agreement of "вы" also keeps every sentence gender-neutral for free. Never capitalized "Вы" mid-sentence. - **Product names stay in Latin script and undeclined**, with a carrier noun taking the case ("в приложении Marinara Engine", never "в Маринаре") — a declined or Cyrillicized name breaks the literal-substring docs search. - **Community-standard Cyrillic loanwords decline normally**: промпт, токен, пресет, лорбук (the RU SillyTavern community's own term), чат, свайп, спрайт, виджет, трекер. Case endings are suffixes, so the searchable stem survives declension. - **En dashes (`–`) wherever Russian grammar wants тире**; em dashes banned pack-wide. Straight ASCII quotes only (never «ёлочки»), no non-breaking spaces, "е" instead of "ё" except in всё/всём/всё-таки — one spelling per word keeps search deterministic. - UI control names stay in English bold exactly as rendered, with a one-time Russian gloss per document. ## Validation performed - `node scripts/docs-i18n/build-manifest.mjs ru` + `node scripts/docs-i18n/validate-pack.mjs ru` — 123/123 files mirror the English tree; link targets, code fences, and heading structure verified byte-identical; committed git blobs re-hashed against the manifest (0 mismatches), so download verification will pass. - `pnpm regression:docs` — passes (`languages en, de, es, fr, pl, pt-br, ru`). - `pnpm check` — passes (impeccable, localization, lint, build). - Runtime-verified on a smoke server with the pack materialized as installed: status endpoint reports `active: ru`, integrity ok, 123/123; Russian serves for user and developer docs; `?lang=en` override still serves English; Cyrillic search returns ranked results ("промпт" → 73 guides, "подключение" → 68); the docs viewer shows Russian titles and all 20 Russian category labels; the Settings selector shows Русский active. - Translation QA: every file structurally verified against its English source (headings, tables, fences, link targets); four independent native-reader review panels read all 123 files end-to-end against the English source and fixed ~250 issues (mistranslations, calques, terminology drift); a final consistency sweep drove link-text↔H1 paraphrases to 0 and unified repeated section headings so search ranking stays coherent. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Added Russian as a documentation language. * Russian translations cover in-app guides, including developer documentation. * Added localized Russian labels for documentation navigation. * Russian documentation can be installed from **Settings → General → Documentation Language** using **Download & Replace**. * **Improvements** * Settings search now recognizes English and Russian terms for the documentation language option. <!-- 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:16 +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#6317
No description provided.