mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4471] [MERGED] Offer Hindi as a documentation language and fix the Language dropdown order #6392
Labels
No labels
android
bug
bugfix
ci
client
code freeze pause
container
dependencies
docs
documentation
duplicate
enhancement
feature
feature
feature
feature-creep
fixed-in-refactor
fixed-in-staging
good first issue
help wanted
in-pr
in-pr
needs-codeowner-decision
normal-scope
old-codebase
old-codebase
pull-request
qol
question
refactor
regression
revisit later
roadmap
scope-risk
scope-risk
server
server
shared
soup
upstream
windows
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
Pasta-Devs/Marinara-Engine#6392
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/4471
Author: @kolacheee
Created: 8/2/2026
Status: ✅ Merged
Merged: 8/2/2026
Merged by: @kolacheee
Base:
staging← Head:agent/docs-language-hi📝 Commits (4)
7d870cfOffer Hindi as a documentation language and fix the Language dropdown orderd941305Reference #4471 in the changelog entries20dee9eMerge branch 'staging' into agent/docs-language-hifdb3741Remove the duplicate Fixed heading introduced by the branch update📊 Changes
7 files changed (+36 additions, -2 deletions)
View changed files
📝
CHANGELOG.md(+5 -0)📝
CONTRIBUTING.md(+1 -0)📝
packages/client/src/components/modals/DocsViewerModal.tsx(+22 -0)📝
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
Hindi is the next language on the documentation-translation roadmap (all UI
Languagelocales get a docs pack; हिन्दी follows Simplified Chinese). Hindi-speaking users currently read all 124 in-app guides in English. This PR makes them available in natural Hindi through the existing Settings → General → Documentation Language selector and the onboarding tutorial's language suggestion.It also fixes a maintainer-reported UI defect: the Settings → General → Language dropdown appeared in scrambled order.
Follows up on #4100 (selector + architecture + Spanish), #4157, #4191, #4229, #4235, #4281, #4345, #4374, and #4435. The translated pack itself lives on the
docs-i18nbranch (pushed together with this PR); this Engine PR adds the language wiring and the dropdown fix.What changed
packages/shared/src/constants/docs-languages.ts—hi: { label: "हिन्दी", englishLabel: "Hindi" }(byte-matched to the Language dropdown'sIntl.DisplayNamesoutput, NFC).packages/client/src/components/modals/DocsViewerModal.tsx— Hindi sidebar category labels (गाइड, होम, इंस्टॉलेशन, कनेक्शन, कैरेक्टर, चैट, लोरबुक, एजेंट, मीडिया, प्रॉम्प्ट, अपीयरेंस, सेटिंग्स, डेटा, एक्सटेंशन, इंटीग्रेशन, डेवलपमेंट; mode names and Noodle stay English).packages/client/src/components/panels/SettingsPanel.tsx— settings-search aliaseshindi,हिन्दी.packages/client/src/localization/locale-loader.ts— the Language-dropdown fix: the previous sort compared native-script labels with a different collation locale per entry, which is non-transitive across scripts — simulation over the twelve real locales produced 2,845 distinct orderings depending on input order, with 240 comparator-consistency violations. The dropdown now sorts by language code with English pinned first (one deterministic order), matching the Documentation Language selector: English, العربية, Deutsch, Español, Français, हिन्दी, 日本語, 한국어, Polski, Português (Brasil), Русский, 简体中文.scripts/regressions/docs-language.regression.ts— asserts Hindi stays offered.CONTRIBUTING.md— Hindi translation-convention bullet (see below).CHANGELOG.md— entries under[Unreleased]Added (the pack) and Fixed (the dropdown).No server changes are needed per language: the pack list, download URL, verification, and serving all derive from the shared label map.
Hindi conventions (documented in CONTRIBUTING)
Because the in-app docs search is literal substring matching, the pack enforces one spelling and search-safe text end to end:
7860.Validation performed
supportedDocLanguages()semantics).node scripts/docs-i18n/validate-pack.mjspasses for all ten packs at 124/124 against currentstaging; committed git blobs re-hashed against every manifest (0 mismatches).pnpm regression:docspasses (en, de, es, fr, hi, ja, ko, pl, pt-br, ru, zh-hans);pnpm checkpasses.docs-i18npush also carries a catch-up mirroring two recently-drifted guides into all nine shipped packs, so every language ships current with this Engine PR.Summary by CodeRabbit
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.