[PR #5866] [MERGED] feat(i18n): host community UI packs on docs-i18n #6971

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/5866
Author: @SpicyMarinara
Created: 9/5/2026
Status: ✅ Merged
Merged: 9/5/2026
Merged by: @SpicyMarinara

Base: docs-i18n ← Head: feat/5827-ui-translation-packs


📝 Commits (2)

  • 57c5597 feat(i18n): host community UI packs on docs-i18n
  • 3a89861 fix(i18n): correct three reviewed German spelling errors

📊 Changes

14 files changed (+19718 additions, -1 deletions)

View changed files

📝 README.md (+25 -1)
➕ scripts/ui-i18n/validate-packs.mjs (+171 -0)
➕ ui/ar.json (+136 -0)
➕ ui/de.json (+526 -0)
➕ ui/es.json (+136 -0)
➕ ui/fr.json (+136 -0)
➕ ui/hi.json (+136 -0)
➕ ui/ja.json (+136 -0)
➕ ui/ko.json (+8682 -0)
➕ ui/manifest.json (+59 -0)
➕ ui/pl.json (+597 -0)
➕ ui/pt-BR.json (+136 -0)
➕ ui/ru.json (+136 -0)
➕ ui/zh-Hans.json (+8706 -0)

📄 Description

Linked issue

Part of #5827 and the Engine Issue Sweep #5865. Do not close #5827 until the Engine change lands.

Why this change

The maintainer approved moving community UI translations out of Engine feature PRs. This content companion puts the existing packs at the on-demand download location before #5865 removes the bundled copies. It intentionally targets docs-i18n, as decided in #5827; the Engine implementation targets staging.

What changed

  • Move all eleven existing non-English UI packs to top-level ui/, preserving canonical BCP-47 filename casing, including Arabic. The initial migration preserved all bytes; a separate review-fix commit corrects three pre-existing German spelling errors, with every other value unchanged.
  • Add a deterministic ui/manifest.json with sizes and SHA-256 hashes for the existing safe downloader.
  • Reuse the Engine locale validator on this translation branch. It reports coverage and stale keys against an explicitly supplied canonical English catalog, checks metadata/text/interpolation/rich-text tokens, and validates or rebuilds the manifest.
  • Preserve the reviewed Korean placement/suffix regression alongside its owning pack and document the contribution/download flow.
  • Leave every documentation language folder, glossary, unrelated translation PR, and draft unchanged.

Validation

  • Validate UI packs against the latest canonical English catalog.
  • Verify original pack bytes and generated manifest hashes.
  • Manually verify an installed Engine downloads a published pack and refreshes it.
  • Read and followed CONTRIBUTING.md.

Executed proof: the validator passed both with --write-manifest and in read-only verification mode against Engine issue work based on 498756ec9. It reported all eleven packs and zero stale keys. A direct byte comparison of each moved file against 498756ec9:packages/client/src/localization/locales/<locale>.json passed. The Engine implementation separately passed pnpm check, the explicit-install/fallback/refresh regression, and six focused Playwright cases across desktop Chromium, mobile Chromium, and mobile WebKit.

Manual verification notes

Manually verify the published docs-i18n/ui/manifest.json and a real pack download after this content PR merges. Physical phone checks are not claimed. This orphan content branch has no app build or container to run; app-side checks belong to #5865. All checkboxes remain human to-dos.

Docs and release impact

  • Review the updated branch README contribution instructions.
  • Verify the Engine changelog and migration guide in #5865.

No version bump, no main promotion, and no automatic UI pack download. The accepted one-time English fallback and re-selection flow is implemented and documented in #5865.

UI evidence (if applicable)

No UI code changes on this content branch. Engine picker evidence belongs to #5865.


🔄 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/5866 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 9/5/2026 **Status:** ✅ Merged **Merged:** 9/5/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `docs-i18n` ← **Head:** `feat/5827-ui-translation-packs` --- ### 📝 Commits (2) - [`57c5597`](https://github.com/Pasta-Devs/Marinara-Engine/commit/57c5597fe6e4edb61a4eda352c786d2ab4a4fe34) feat(i18n): host community UI packs on docs-i18n - [`3a89861`](https://github.com/Pasta-Devs/Marinara-Engine/commit/3a89861caed31fc04b47e664ee71a5d9368a1188) fix(i18n): correct three reviewed German spelling errors ### 📊 Changes **14 files changed** (+19718 additions, -1 deletions) <details> <summary>View changed files</summary> 📝 `README.md` (+25 -1) ➕ `scripts/ui-i18n/validate-packs.mjs` (+171 -0) ➕ `ui/ar.json` (+136 -0) ➕ `ui/de.json` (+526 -0) ➕ `ui/es.json` (+136 -0) ➕ `ui/fr.json` (+136 -0) ➕ `ui/hi.json` (+136 -0) ➕ `ui/ja.json` (+136 -0) ➕ `ui/ko.json` (+8682 -0) ➕ `ui/manifest.json` (+59 -0) ➕ `ui/pl.json` (+597 -0) ➕ `ui/pt-BR.json` (+136 -0) ➕ `ui/ru.json` (+136 -0) ➕ `ui/zh-Hans.json` (+8706 -0) </details> ### 📄 Description ## Linked issue Part of #5827 and the Engine Issue Sweep #5865. Do not close #5827 until the Engine change lands. ## Why this change The maintainer approved moving community UI translations out of Engine feature PRs. This content companion puts the existing packs at the on-demand download location before #5865 removes the bundled copies. It intentionally targets `docs-i18n`, as decided in #5827; the Engine implementation targets `staging`. ## What changed - Move all eleven existing non-English UI packs to top-level `ui/`, preserving canonical BCP-47 filename casing, including Arabic. The initial migration preserved all bytes; a separate review-fix commit corrects three pre-existing German spelling errors, with every other value unchanged. - Add a deterministic `ui/manifest.json` with sizes and SHA-256 hashes for the existing safe downloader. - Reuse the Engine locale validator on this translation branch. It reports coverage and stale keys against an explicitly supplied canonical English catalog, checks metadata/text/interpolation/rich-text tokens, and validates or rebuilds the manifest. - Preserve the reviewed Korean placement/suffix regression alongside its owning pack and document the contribution/download flow. - Leave every documentation language folder, glossary, unrelated translation PR, and draft unchanged. ## Validation - [ ] Validate UI packs against the latest canonical English catalog. - [ ] Verify original pack bytes and generated manifest hashes. - [ ] Manually verify an installed Engine downloads a published pack and refreshes it. - [ ] Read and followed `CONTRIBUTING.md`. Executed proof: the validator passed both with `--write-manifest` and in read-only verification mode against Engine issue work based on `498756ec9`. It reported all eleven packs and zero stale keys. A direct byte comparison of each moved file against `498756ec9:packages/client/src/localization/locales/<locale>.json` passed. The Engine implementation separately passed `pnpm check`, the explicit-install/fallback/refresh regression, and six focused Playwright cases across desktop Chromium, mobile Chromium, and mobile WebKit. ### Manual verification notes Manually verify the published `docs-i18n/ui/manifest.json` and a real pack download after this content PR merges. Physical phone checks are not claimed. This orphan content branch has no app build or container to run; app-side checks belong to #5865. All checkboxes remain human to-dos. ## Docs and release impact - [ ] Review the updated branch README contribution instructions. - [ ] Verify the Engine changelog and migration guide in #5865. No version bump, no main promotion, and no automatic UI pack download. The accepted one-time English fallback and re-selection flow is implemented and documented in #5865. ## UI evidence (if applicable) No UI code changes on this content branch. Engine picker evidence belongs to #5865. --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
bsakaguchi 2026-10-23 04:15:22 +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#6971
No description provided.