Skip to content

fix: parameterize settings shortcut in footer for cross-platform display#976

Open
Urielbp wants to merge 31 commits into
refactoringhq:mainfrom
Urielbp:fix/settings-shortcut-cross-platform
Open

fix: parameterize settings shortcut in footer for cross-platform display#976
Urielbp wants to merge 31 commits into
refactoringhq:mainfrom
Urielbp:fix/settings-shortcut-cross-platform

Conversation

@Urielbp

@Urielbp Urielbp commented Jun 29, 2026

Copy link
Copy Markdown

Summary

  • The settings footer shortcut hint hardcoded ⌘, directly in every locale string, which is macOS-only and displays incorrectly on Windows (Ctrl+,) and Linux
  • Replaced the hardcoded symbol with a {shortcut} placeholder in all 18 locale files
  • SettingsFooter.tsx now resolves the shortcut at render time via the existing formatShortcutDisplay utility, so each platform sees its native shortcut representation

Changes

  • src/components/SettingsFooter.tsx — import formatShortcutDisplay, compute SETTINGS_SHORTCUT once at module level, pass it as the shortcut interpolation param to t('settings.footerShortcut', ...)
  • src/lib/locales/*.json (18 files) — replace hardcoded ⌘, with {shortcut} placeholder

Before (Linux)

full page before linux before

After (Linux)

full page after linux after

Testing

  • ESLint pre-commit hook passed on all changed files
  • TypeScript compilation verified (no tsc errors introduced)
  • No logic changes — purely a string parameterization using the existing i18n interpolation system already used elsewhere in the app

AI was used for assistance in authoring this contribution.

Replaces the hardcoded ⌘, symbol in the settings footer shortcut hint
with a dynamic {shortcut} placeholder resolved via formatShortcutDisplay,
so Windows and Linux users see Ctrl+, instead of the macOS-only ⌘ glyph.

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@Urielbp

Urielbp commented Jun 29, 2026

Copy link
Copy Markdown
Author

Just tested on macOS and it's working as intended.
Captura de Tela 2026-06-29 às 12 23 51

github-actions Bot added 28 commits June 29, 2026 18:30
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant