[PR #3992] [MERGED] Complete UI localization and allow partial translations #6188

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

📋 Pull Request Information

Original PR: https://github.com/Pasta-Devs/Marinara-Engine/pull/3992
Author: @SpicyMarinara
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/23/2026
Merged by: @SpicyMarinara

Base: staging ← Head: fix/3978-complete-ui-localization


📝 Commits (4)

  • c95be9c fix: allow partial community locales
  • 0b8aebc feat: localize core interface surfaces
  • d45b2ba Merge remote-tracking branch 'origin/staging' into fix/3978-complete-ui-localization
  • 1a45df7 fix: address localization review feedback

📊 Changes

34 files changed (+1302 additions, -282 deletions)

View changed files

📝 .github/agents/chai-workflow.md (+5 -3)
📝 AGENTS.md (+1 -1)
📝 docs/development/localization.md (+10 -0)
📝 e2e/core-flows.e2e.ts (+12 -0)
📝 packages/client/.instructions.md (+6 -0)
📝 packages/client/src/components/characters/CharacterLibraryView.tsx (+9 -1)
📝 packages/client/src/components/chat/ChatArea.tsx (+11 -9)
📝 packages/client/src/components/chat/ChatInput.tsx (+23 -13)
📝 packages/client/src/components/chat/ConversationInput.tsx (+27 -21)
📝 packages/client/src/components/chat/HomeAchievements.tsx (+19 -10)
📝 packages/client/src/components/chat/HomeCreditsModal.tsx (+24 -24)
📝 packages/client/src/components/chat/HomeFaq.tsx (+43 -33)
📝 packages/client/src/components/chat/HomeProfessorMariChat.tsx (+29 -26)
📝 packages/client/src/components/chat/RecentChats.tsx (+5 -2)
📝 packages/client/src/components/game-assets/SearchInput.tsx (+4 -2)
📝 packages/client/src/components/game/GameInput.tsx (+11 -9)
📝 packages/client/src/components/layout/ChatSidebar.tsx (+31 -25)
📝 packages/client/src/components/layout/TopBar.tsx (+10 -8)
📝 packages/client/src/components/onboarding/OnboardingTutorial.tsx (+9 -4)
📝 packages/client/src/components/panels/AgentsPanel.tsx (+3 -1)

...and 14 more files

📄 Description

Why

The first localization foundation only routed a small set of UI strings through the locale catalog. Selecting Polish still left the navigation, Settings toggles, Home, search controls, chat inputs, tooltips, and Professor Mari's onboarding in hard-coded English.

The contributor workflow also required every feature PR to edit every bundled locale even though the runtime already supports partial catalogs. That duplicated English text and created avoidable conflicts for translators.

What changed

  • Makes canonical English the only required catalog for new UI copy; missing community translations fall back to English.
  • Corrects AGENTS.md, the client instructions, the AI workflow overlay, and localization docs so feature PRs no longer touch every locale for key parity.
  • Adds a migration bridge for legacy Settings controls, modal titles, and help tooltips while keeping semantic t("area.key") calls as the required pattern for new UI.
  • Localizes primary top-bar navigation, chat sidebar modes/actions/search, panel search boxes, Conversation/Roleplay/Game input placeholders, Home actions, achievements, credits, Recent Chats, Professor Mari's launcher and composer, FAQ chrome, and the complete Professor Mari onboarding tour.
  • Catalogs 155 of 156 literal Settings labels/descriptions/tooltips; the only excluded literal is the machine value ADMIN_SECRET.
  • Expands Polish to the complete extracted 436-key catalog while leaving every other community locale intentionally partial.
  • Adds desktop and mobile browser proof for Polish switching and English fallback from an incomplete German locale.

Closes #3978

Automated validation run

  • pnpm localization:check
  • pnpm check
  • Focused localization Playwright test on desktop Chromium and Pixel 7: 2 passed
  • Full pnpm smoke:ui: 92 passed, 52 viewport-specific skips

Manual verification requested

  • Manually verify Polish navigation, Settings, Home, search, chat inputs, onboarding, and tooltips on desktop.
  • Manually verify the same surfaces at a mobile viewport.
  • Manually review Polish terminology and long-label wrapping.
  • Manually spot-check an incomplete community locale displays canonical English for missing keys.

Summary by CodeRabbit

  • New Features

    • Expanded localization across chat, home, onboarding, game, navigation, search, settings, FAQ, tooltips, and accessibility labels.
    • Added extensive English and Polish translations.
    • Partially translated locales now gracefully fall back to English for missing text.
    • Improved localized search matching and modal, tooltip, and form labeling.
  • Bug Fixes

    • Corrected language persistence and verified translated and fallback text across reloads.
  • Documentation

    • Clarified localization contribution guidelines and translation fallback behavior.

🔄 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/3992 **Author:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Created:** 7/23/2026 **Status:** ✅ Merged **Merged:** 7/23/2026 **Merged by:** [@SpicyMarinara](https://github.com/SpicyMarinara) **Base:** `staging` ← **Head:** `fix/3978-complete-ui-localization` --- ### 📝 Commits (4) - [`c95be9c`](https://github.com/Pasta-Devs/Marinara-Engine/commit/c95be9c27d090fa947fa507715f620f5c71ef95e) fix: allow partial community locales - [`0b8aebc`](https://github.com/Pasta-Devs/Marinara-Engine/commit/0b8aebcec6753fc1160339a63a2403942117855c) feat: localize core interface surfaces - [`d45b2ba`](https://github.com/Pasta-Devs/Marinara-Engine/commit/d45b2ba8588b5a17e4142aeb4bb14c3e57dc6466) Merge remote-tracking branch 'origin/staging' into fix/3978-complete-ui-localization - [`1a45df7`](https://github.com/Pasta-Devs/Marinara-Engine/commit/1a45df73add93d62c1039c21f75055b0279a664f) fix: address localization review feedback ### 📊 Changes **34 files changed** (+1302 additions, -282 deletions) <details> <summary>View changed files</summary> 📝 `.github/agents/chai-workflow.md` (+5 -3) 📝 `AGENTS.md` (+1 -1) 📝 `docs/development/localization.md` (+10 -0) 📝 `e2e/core-flows.e2e.ts` (+12 -0) 📝 `packages/client/.instructions.md` (+6 -0) 📝 `packages/client/src/components/characters/CharacterLibraryView.tsx` (+9 -1) 📝 `packages/client/src/components/chat/ChatArea.tsx` (+11 -9) 📝 `packages/client/src/components/chat/ChatInput.tsx` (+23 -13) 📝 `packages/client/src/components/chat/ConversationInput.tsx` (+27 -21) 📝 `packages/client/src/components/chat/HomeAchievements.tsx` (+19 -10) 📝 `packages/client/src/components/chat/HomeCreditsModal.tsx` (+24 -24) 📝 `packages/client/src/components/chat/HomeFaq.tsx` (+43 -33) 📝 `packages/client/src/components/chat/HomeProfessorMariChat.tsx` (+29 -26) 📝 `packages/client/src/components/chat/RecentChats.tsx` (+5 -2) 📝 `packages/client/src/components/game-assets/SearchInput.tsx` (+4 -2) 📝 `packages/client/src/components/game/GameInput.tsx` (+11 -9) 📝 `packages/client/src/components/layout/ChatSidebar.tsx` (+31 -25) 📝 `packages/client/src/components/layout/TopBar.tsx` (+10 -8) 📝 `packages/client/src/components/onboarding/OnboardingTutorial.tsx` (+9 -4) 📝 `packages/client/src/components/panels/AgentsPanel.tsx` (+3 -1) _...and 14 more files_ </details> ### 📄 Description ## Why The first localization foundation only routed a small set of UI strings through the locale catalog. Selecting Polish still left the navigation, Settings toggles, Home, search controls, chat inputs, tooltips, and Professor Mari's onboarding in hard-coded English. The contributor workflow also required every feature PR to edit every bundled locale even though the runtime already supports partial catalogs. That duplicated English text and created avoidable conflicts for translators. ## What changed - Makes canonical English the only required catalog for new UI copy; missing community translations fall back to English. - Corrects `AGENTS.md`, the client instructions, the AI workflow overlay, and localization docs so feature PRs no longer touch every locale for key parity. - Adds a migration bridge for legacy Settings controls, modal titles, and help tooltips while keeping semantic `t("area.key")` calls as the required pattern for new UI. - Localizes primary top-bar navigation, chat sidebar modes/actions/search, panel search boxes, Conversation/Roleplay/Game input placeholders, Home actions, achievements, credits, Recent Chats, Professor Mari's launcher and composer, FAQ chrome, and the complete Professor Mari onboarding tour. - Catalogs 155 of 156 literal Settings labels/descriptions/tooltips; the only excluded literal is the machine value `ADMIN_SECRET`. - Expands Polish to the complete extracted 436-key catalog while leaving every other community locale intentionally partial. - Adds desktop and mobile browser proof for Polish switching and English fallback from an incomplete German locale. Closes #3978 ## Automated validation run - `pnpm localization:check` - `pnpm check` - Focused localization Playwright test on desktop Chromium and Pixel 7: 2 passed - Full `pnpm smoke:ui`: 92 passed, 52 viewport-specific skips ## Manual verification requested - [ ] Manually verify Polish navigation, Settings, Home, search, chat inputs, onboarding, and tooltips on desktop. - [ ] Manually verify the same surfaces at a mobile viewport. - [ ] Manually review Polish terminology and long-label wrapping. - [ ] Manually spot-check an incomplete community locale displays canonical English for missing keys. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **New Features** * Expanded localization across chat, home, onboarding, game, navigation, search, settings, FAQ, tooltips, and accessibility labels. * Added extensive English and Polish translations. * Partially translated locales now gracefully fall back to English for missing text. * Improved localized search matching and modal, tooltip, and form labeling. * **Bug Fixes** * Corrected language persistence and verified translated and fallback text across reloads. * **Documentation** * Clarified localization contribution guidelines and translation fallback behavior. <!-- 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:07:56 +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#6188
No description provided.