mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #4435] [MERGED] Offer Simplified Chinese as a documentation language #6377
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#6377
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/4435
Author: @kolacheee
Created: 8/1/2026
Status: ✅ Merged
Merged: 8/1/2026
Merged by: @kolacheee
Base:
staging← Head:agent/docs-language-zh-hans📝 Commits (3)
fbf9671Offer Simplified Chinese as a documentation language0eb52f7Reference #4435 in the changelog entry59d9bb9Merge branch 'staging' into agent/docs-language-zh-hans📊 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
Simplified Chinese is the next language on the documentation-translation roadmap (all UI
Languagelocales get a docs pack; 简体中文 follows Korean). Chinese-speaking users — a large share of the Chinese SillyTavern community, where this app genre is well established — currently read all guides in English. This PR makes them available in natural Simplified Chinese through the existing Settings → General → Documentation Language selector and the onboarding tutorial's language suggestion.Follows up on #4100 (selector + architecture + Spanish), #4157 (German), #4191 (French), #4229 (Brazilian Portuguese), #4235 (Polish), #4281 (Russian), #4345 (Japanese), and #4374 (Korean). The translated pack itself lives on the
docs-i18nbranch (pushed together with this PR); this Engine PR adds only the language wiring.What changed
packages/shared/src/constants/docs-languages.ts—"zh-hans": { label: "简体中文", englishLabel: "Simplified Chinese" }(byte-matched to the Language dropdown'sIntl.DisplayNamesoutput; second region-suffixed code after pt-br — the tutorial matcher's two-stage lowercase logic handles thezh-HansUI locale at stage 1, verified by execution).packages/client/src/components/modals/DocsViewerModal.tsx— Chinese sidebar category labels (指南, 主页, 安装, 连接, 角色, 聊天, 世界书, 智能体, 媒体, 提示词, 外观, 设置, 数据, 扩展, 集成, 开发; mode names and Noodle stay English).packages/client/src/components/panels/SettingsPanel.tsx— settings-search aliaseschinese,simplified,简体中文,中文.scripts/regressions/docs-language.regression.ts— asserts Simplified Chinese stays offered.CONTRIBUTING.md— Simplified Chinese translation-convention bullet (see below).CHANGELOG.md— release-notes entry (placed under the in-flight[2.4.0]section alongside the other post-release entries, matching current changelog practice).No server changes are needed per language: the pack list, download URL, verification, and serving all derive from the shared label map.
Simplified Chinese conventions (documented in CONTRIBUTING)
Because the in-app docs search is literal substring matching, the pack enforces one term, one script, and one typography per concept end to end:
7860), with a crisp two-case parenthesis convention (half-width tight after any Latin token including bold labels and inline code; full-width in pure Chinese context) and a uniform CJK↔Latin spacing rule — all normalized pack-wide and codified in the glossary.Validation performed
node scripts/docs-i18n/validate-pack.mjspasses for all nine packs at 124/124 against currentstaging(the companiondocs-i18npush also carries a catch-up translating the new chat-resource drag-drop developer plan into every language and the schedules-guide addition, plus quality-verified mirrors of the World Maps rewrite — including full retranslations of the German and Spanish copies, whose earlier mirrors were found to be broken machine translation).pnpm regression:docspasses (en, de, es, fr, ja, ko, pl, pt-br, ru, zh-hans);pnpm checkpasses.Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.