mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #3986] [MERGED] Add UI localization foundation #6185
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#6185
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/3986
Author: @SpicyMarinara
Created: 7/23/2026
Status: ✅ Merged
Merged: 7/23/2026
Merged by: @SpicyMarinara
Base:
staging← Head:agent/localization-foundation-3978📝 Commits (4)
4d36c1fStart localization foundation13e4f0aAdd UI localization foundationa5c0c68Add more UI language catalogsc20c38fApply CodeRabbit review fixes for retry label and locale markup checks📊 Changes
33 files changed (+1153 additions, -38 deletions)
View changed files
📝
CHANGELOG.md(+1 -0)📝
CONTRIBUTING.md(+9 -0)📝
README.md(+1 -0)➕
docs/development/localization.md(+163 -0)📝
docs/development/optional-agent-packages.md(+5 -0)📝
docs/settings/settings-overview.md(+6 -1)📝
e2e/core-flows.e2e.ts(+129 -0)📝
package.json(+2 -1)📝
packages/client/package.json(+2 -0)📝
packages/client/src/components/capabilities/CapabilityElement.tsx(+38 -11)📝
packages/client/src/components/panels/SettingsPanel.tsx(+10 -9)➕
packages/client/src/localization/LocalizationProvider.tsx(+26 -0)➕
packages/client/src/localization/i18n.ts(+85 -0)➕
packages/client/src/localization/locale-loader.ts(+113 -0)➕
packages/client/src/localization/locale-types.ts(+24 -0)➕
packages/client/src/localization/locales/ar.json(+24 -0)➕
packages/client/src/localization/locales/de.json(+24 -0)➕
packages/client/src/localization/locales/en.json(+24 -0)➕
packages/client/src/localization/locales/es.json(+24 -0)➕
packages/client/src/localization/locales/fr.json(+24 -0)...and 13 more files
📄 Description
Why
Issue #3978 needs a stable, contributor-friendly localization architecture before thousands of hard-coded UI strings and community translations can move upstream safely.
This first focused slice establishes that foundation without changing model prompts, generated chat content, persisted protocol values, or other machine-readable behavior.
What changed
lang,dir, and title.{ locale, direction }pluslang/dirto downloadable Agent capability interfaces and reuses the existing capability-props update event.staging.Translation status
English is the canonical source. The eleven non-English foundation catalogs are initial machine-assisted translations and are explicitly open to fluent-speaker corrections. Missing UI keys fall back to English while the broader extraction work continues.
Deliberate boundary
This is the architecture and first migrated UI slice, not the completion of #3978. The remaining hard-coded UI, including chat/game surfaces, tooltips, placeholders, Professor Mari tutorials, and Engine-owned Agent screens, should move into the canonical catalog in focused follow-up PRs. Package-owned Agent copy and translations remain in Marinara-Agents.
Automated evidence
pnpm checkpassed at the current head: locale validation, TypeScript, ESLint, and shared/server/client production builds.pnpm version:checkpassed.Manual review checklist
Refs #3978
Summary by CodeRabbit
New Features
Documentation
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.