feat(web): polish language switcher UI #1184
Loading…
Reference in a new issue
No description provided.
Delete branch "feature/i18n-switcher-design"
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?
Elevates the language switcher in Settings → Account to the app's established single-choice control vocabulary.
What changed
Languagecard with rounded-full pills matching the FilterSortMenu / ProfileTabs single-choice pattern (emerald border +bg-emerald-950/40selected state, neutral hover states).min-h-11(44px) for comfortable mobile touch targets and wrap on narrow screens.<input type="radio">stays in the DOM (sr-only) so therole="radiogroup"keeps arrow-key navigation and screen-reader semantics; the pill label shows afocus-withinring.data-testids added:language-switcher,language-option-{en,de,da}.Behavior unchanged
persistLocaleToAccount(value)thensetLocale(value)(order preserved); locale switch still reloads the page by design.Not included
messages/*.jsonchanges — reuses existinglanguageLabel/languageEnglish/languageDeutsch/languageDanskkeys (each label already renders in its own language).Verification
npm run check: 0 errors (18 pre-existing warnings in unrelated files)npm run build: successnpx playwright test tests/profile-tabs.spec.ts: 8/8 passed (desktop + mobile)