mirror of
https://github.com/Pasta-Devs/Marinara-Engine.git
synced 2026-12-03 19:00:50 +07:00
[GH-ISSUE #7680] [Feature]: Localize the settings search registry (117 descriptions, 25 labels) #4241
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#4241
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?
Originally created by @ylli-selmani on GitHub (Oct 15, 2026).
Original GitHub issue: https://github.com/Pasta-Devs/Marinara-Engine/issues/7680
Originally assigned to: @ylli-selmani on GitHub.
What problem does this solve?
Settings search, the omnibar and Professor Mari's navigation all read their control labels and descriptions from
SETTINGS_SEARCHABLE_CONTROLSinpackages/client/src/lib/settings-registry.ts. Those strings are hard-coded English. They only get translated whenuseLocalizedUiText()finds the exact same English text somewhere inen.json.Today only 26 of the 143 descriptions and 117 of the 142 labels have a match. The other 117 descriptions and 25 labels always show in English, whatever UI language is selected. They also drift from the real setting text: when a control's help text in
en.jsonchanges, the registry copy goes stale, and CodeRabbit's "Localized UI Text" check flags any PR that touches one of them.Proposed solution
labelKeyanddescriptionKey, that point at the control's existingsettings.controls.*.label/.helpkeys where one exists, or at new keys inen.jsonwhere none does.t()in the consumers:SettingsPanel.tsx,use-omnibar-local-results.ts,omnibar-results.ts,OmnibarSettingsMenu.tsxandprofessor-mari-navigation.ts.pnpm localization:checkso that a registry entry without a key fails the check.[ui-i18n]follow-up for the new keys, per CONTRIBUTING.md.Alternatives considered
Additional context
Found while working on #7664, where CodeRabbit flagged the queue-media entry. That PR fixes its one entry by reusing
settings.controls.queueMedia.help. This issue covers the rest.Template check
🤖 Generated with Claude Code