mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[PR #7683] [MERGED] feat(settings): localize the settings search registry #7880
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#7880
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/7683
Author: @ylli-selmani
Created: 10/15/2026
Status: ✅ Merged
Merged: 10/15/2026
Merged by: @ylli-selmani
Base:
staging← Head:feat/settings-search-i18n📝 Commits (6)
a719e27feat(settings): add localization keys to the settings search registry681bb19feat(settings): translate settings search results through registry keysd636729test(settings): check settings registry keys against en.json821a73aMerge remote-tracking branch 'upstream/staging' into feat/settings-search-i18na15c532fix(localization): decode single-quoted registry strings in one pass90bf9d3style(localization): format check-locales📊 Changes
9 files changed (+580 additions, -20 deletions)
View changed files
📝
packages/client/src/components/chat/mari/CompactMariMessage.tsx(+7 -3)📝
packages/client/src/components/layout/omnibar/use-omnibar-mari-arrival.ts(+3 -3)📝
packages/client/src/components/panels/SettingsPanel.tsx(+9 -5)📝
packages/client/src/lib/omnibar-results.ts(+9 -4)📝
packages/client/src/lib/omnibar-settings.ts(+26 -2)📝
packages/client/src/lib/settings-registry.ts(+313 -3)📝
packages/client/src/localization/locales/en.json(+142 -0)📝
scripts/check-locales.mjs(+42 -0)📝
scripts/regressions/command-center.regression.ts(+29 -0)📄 Description
Linked issue
Closes #7680
Why this change
SETTINGS_SEARCHABLE_CONTROLS, which was hard-coded English. It only translated when the exact English string happened to exist inen.json(118 of 143 labels, 26 of 143 descriptions), so 117 descriptions and 25 labels always showed in English and could drift from the real setting text.What changed
labelKeyanddescriptionKey. Existingsettings.controls.*/settings.*/omnibar.settings.*keys are reused when the English text matches exactly (118 labels, 27 descriptions); otherwise newsettings.search.<id>.label/.descriptionkeys were added toen.json(142 keys). English text is unchanged. The Englishlabel/descriptionstay on the entry as thet()fallback.searchSettings), omnibar settings rows (omnibar-settings.ts,omnibar-results.ts) and Professor Mari setting cards (CompactMariMessage.tsx,use-omnibar-mari-arrival.ts) translate through the keys. Search matches the translated text, the English text and aliases; the omnibar adds the English title as an alias when the translated title differs.pnpm localization:checknow fails when a registry control lacks a key, when a key is missing fromen.json, or when the registry English no longer equals theen.jsontext.professor-mari-navigation.ts,state-navigation.ts,GlobalOmnibar.tsxanduse-omnibar-local-results.tsonly use ids, types orisOmnibarSettingsTarget, or already passt. Tab and section copy still goes throughuseLocalizedUiText(they live in@marinara-engine/shared).Slices
labelKey/descriptionKeyto every registry control and the matchingen.jsonkeyspnpm localization:checkon missing or drifted registry keysValidation
pnpm checkpasses locallyCONTRIBUTING.mdAlso run:
pnpm localization:check; theissue-sweep-settings,omnibar-settings-syncandcommand-palettebrowser tests on desktop Chromium (21 passed, 2 skipped by design); and thecommand-center,omnibar-home-commands,omnibar-row-lines,omnibar-question-shape,omnibar-message-groups,omnibar-excerpt,mari-polish,mari-permissions-mode,music-dj-and-floating-uiandissue-sweep-5371-5375regressions vianode ./scripts/run-regressions.mjs --filter <file>. All pass.Manual verification notes
Docs and release impact
docs-i18nbranch updated to match, or a[docs-i18n]follow-up issue opened (see CONTRIBUTING.md § Translated documentation)The
[ui-i18n]follow-up #7684 covers the newsettings.search.*keys.UI evidence (if applicable)
Not applicable; no visible English change.
🤖 Generated with Claude Code
Summary by CodeRabbit
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.