[GH-ISSUE #7680] [Feature]: Localize the settings search registry (117 descriptions, 25 labels) #4241

Closed
opened 2026-10-21 06:13:17 +07:00 by bsakaguchi · 0 comments
Owner

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_CONTROLS in packages/client/src/lib/settings-registry.ts. Those strings are hard-coded English. They only get translated when useLocalizedUiText() finds the exact same English text somewhere in en.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.json changes, the registry copy goes stale, and CodeRabbit's "Localized UI Text" check flags any PR that touches one of them.

Proposed solution

  • Give each registry entry localization keys, for example labelKey and descriptionKey, that point at the control's existing settings.controls.*.label / .help keys where one exists, or at new keys in en.json where none does.
  • Resolve the keys with t() in the consumers: SettingsPanel.tsx, use-omnibar-local-results.ts, omnibar-results.ts, OmnibarSettingsMenu.tsx and professor-mari-navigation.ts.
  • Optionally, extend pnpm localization:check so that a registry entry without a key fails the check.
  • Open a [ui-i18n] follow-up for the new keys, per CONTRIBUTING.md.

Alternatives considered

  • Keep matching on English text, but reuse the help text for every description. This is what #7664 does for its single entry. It works, but it stays fragile and silently breaks whenever either copy is edited.

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

  • I DID NOT read this template and provide the requested details.

🤖 Generated with Claude Code

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_CONTROLS` in `packages/client/src/lib/settings-registry.ts`. Those strings are hard-coded English. They only get translated when `useLocalizedUiText()` finds the exact same English text somewhere in `en.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.json` changes, the registry copy goes stale, and CodeRabbit's "Localized UI Text" check flags any PR that touches one of them. ## Proposed solution - Give each registry entry localization keys, for example `labelKey` and `descriptionKey`, that point at the control's existing `settings.controls.*.label` / `.help` keys where one exists, or at new keys in `en.json` where none does. - Resolve the keys with `t()` in the consumers: `SettingsPanel.tsx`, `use-omnibar-local-results.ts`, `omnibar-results.ts`, `OmnibarSettingsMenu.tsx` and `professor-mari-navigation.ts`. - Optionally, extend `pnpm localization:check` so that a registry entry without a key fails the check. - Open a `[ui-i18n]` follow-up for the new keys, per CONTRIBUTING.md. ## Alternatives considered - **Keep matching on English text, but reuse the help text for every description.** This is what #7664 does for its single entry. It works, but it stays fragile and silently breaks whenever either copy is edited. ## 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 - [ ] I DID NOT read this template and provide the requested details. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
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#4241
No description provided.