[PR #5203] [MERGED] feat: expand zh-Hans localization (machine-assisted, 98% coverage) #6672

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5203
Author: @Leruca
Created: 8/17/2026
Status: ✅ Merged
Merged: 8/17/2026
Merged by: @SpicyMarinara

Base: staging ← Head: translation/zh-Hans


📝 Commits (4)

  • 25ae57a feat: complete zh-Hans localization (machine-assisted, 100% coverage)
  • d95db01 Merge branch 'staging' into translation/zh-Hans
  • b589999 Merge branch 'staging' into translation/zh-Hans
  • 6e5a356 fix(localization): sync zh-Hans keys with staging

📊 Changes

2 files changed (+8578 additions, -3 deletions)

View changed files

📝 CHANGELOG.md (+1 -0)
📝 packages/client/src/localization/locales/zh-Hans.json (+8577 -3)

📄 Description

Linked issue

Closes #5201

Why this change

  • Simplified Chinese (zh-Hans) is an officially listed locale, but the shipped file only contained ~45 stub keys, so virtually the whole UI fell back to English for zh-Hans users.
  • Expanding the locale translates nearly the entire current UI while preserving the normal English fallback for labels introduced after the translation pass.

What changed

  • packages/client/src/localization/locales/zh-Hans.json: expanded to 8,619/8,803 current English keys (98% coverage; approximately 45 keys before).
  • _meta.locale: zh-Hans and _meta.direction: ltr preserved unchanged.
  • Machine-assisted first pass, produced in batches under a fixed terminology glossary (agent, chat, preset, lorebook, …) to keep wording consistent across the whole file.
  • Maintainer follow-up removed five obsolete keys left behind by staging changes and added the release-note entry required by the repository workflow.

Validation

  • pnpm check passes locally
  • Container (Docker / Podman) built and ran without issue
  • Ran the app, clicked through the changes manually
  • Checked edge cases (light + dark mode, mobile viewport, empty states, error paths)
  • Above manual verification completed (describe below)
  • Read and followed CONTRIBUTING.md

Manual verification notes

  • Launched the app and opened the main interface.
  • Switched the UI language to Simplified Chinese and reviewed the localization on the test page(s).
  • Confirmed key interface strings render in Chinese without obvious truncation or layout breakage.

Docs and release impact

  • No docs changes needed
  • Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed
  • Translated docs on the docs-i18n branch updated to match, or a [docs-i18n] follow-up issue opened (see CONTRIBUTING.md § Translated documentation)
  • Version/release files updated (only if this PR includes a version bump)

Maintainer follow-up added the required CHANGELOG.md entry. No user-facing guide content changed.

UI evidence (if applicable)

34bd1e788ce06a4bf1599a592eb76fe8

🔄 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/5203 **Author:** [@Leruca](https://github.com/Leruca) **Created:** 8/17/2026 **Status:** ✅ Merged **Merged:** 8/17/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `translation/zh-Hans` --- ### 📝 Commits (4) - [`25ae57a`](https://github.com/Pasta-Devs/Marinara-Engine/commit/25ae57afcaa758b243a9e85e400ece9651177d17) feat: complete zh-Hans localization (machine-assisted, 100% coverage) - [`d95db01`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d95db01974d7957de66a85fa93196b776ca56ea9) Merge branch 'staging' into translation/zh-Hans - [`b589999`](https://github.com/Pasta-Devs/Marinara-Engine/commit/b589999c170f52532b465a08e48336ee2d1ffd31) Merge branch 'staging' into translation/zh-Hans - [`6e5a356`](https://github.com/Pasta-Devs/Marinara-Engine/commit/6e5a35629c625a11730e5623d2cb4b89f11b6b7e) fix(localization): sync zh-Hans keys with staging ### 📊 Changes **2 files changed** (+8578 additions, -3 deletions) <details> <summary>View changed files</summary> 📝 `CHANGELOG.md` (+1 -0) 📝 `packages/client/src/localization/locales/zh-Hans.json` (+8577 -3) </details> ### 📄 Description ## Linked issue <!-- Every PR should reference a feature request or issue report. If there isn't one yet, open one first to gather opinions: --> <!-- https://github.com/Pasta-Devs/Marinara-Engine/issues/new/choose --> Closes #5201 ## Why this change <!-- What user problem, bug, or goal does this solve? --> - Simplified Chinese (zh-Hans) is an officially listed locale, but the shipped file only contained ~45 stub keys, so virtually the whole UI fell back to English for zh-Hans users. - Expanding the locale translates nearly the entire current UI while preserving the normal English fallback for labels introduced after the translation pass. ## What changed <!-- List the key changes in this PR --> - `packages/client/src/localization/locales/zh-Hans.json`: expanded to 8,619/8,803 current English keys (98% coverage; approximately 45 keys before). - `_meta.locale: zh-Hans` and `_meta.direction: ltr` preserved unchanged. - Machine-assisted first pass, produced in batches under a fixed terminology glossary (agent, chat, preset, lorebook, …) to keep wording consistent across the whole file. - Maintainer follow-up removed five obsolete keys left behind by staging changes and added the release-note entry required by the repository workflow. ## Validation <!-- Required: include commands run and/or manual checks performed --> - [x] `pnpm check` passes locally - [ ] Container (Docker / Podman) built and ran without issue - [x] Ran the app, clicked through the changes manually - [ ] Checked edge cases (light + dark mode, mobile viewport, empty states, error paths) - [x] Above manual verification completed (describe below) - [x] Read and followed `CONTRIBUTING.md` ### Manual verification notes <!-- Describe exactly what you tested in a real browser/app, step by step. --> <!-- ⚠️ If an AI agent filled out or ticked these boxes for you, treat them --> <!-- as a TO-DO LIST, not as proof the work is done. Verify each item yourself --> <!-- before submitting. If you haven't verified it, untick the box. --> - Launched the app and opened the main interface. - Switched the UI language to Simplified Chinese and reviewed the localization on the test page(s). - Confirmed key interface strings render in Chinese without obvious truncation or layout breakage. ## Docs and release impact - [ ] No docs changes needed - [ ] Updated docs (README / CONTRIBUTING / android/README / CHANGELOG) as needed - [ ] Translated docs on the `docs-i18n` branch updated to match, or a `[docs-i18n]` follow-up issue opened (see CONTRIBUTING.md § Translated documentation) - [ ] Version/release files updated (only if this PR includes a version bump) Maintainer follow-up added the required `CHANGELOG.md` entry. No user-facing guide content changed. ## UI evidence (if applicable) <!-- Add before/after screenshots or recordings for UI changes --> <img width="2560" height="1440" alt="34bd1e788ce06a4bf1599a592eb76fe8" src="https://github.com/user-attachments/assets/2043a2e3-0aff-4316-a55c-276caac5f212" /> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:12:37 +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#6672
No description provided.