import { SectionShell } from './_shared/SettingsPickerPrimitives'; import { useLocaleStore, useT, LOCALES, type Locale } from '../../../i18n'; import type { TranslationKey } from '../../../i18n'; const LOCALE_LABEL: Record = { en: 'settings.language.en', 'pt-BR': 'settings.language.ptBR', }; /** * Language picker. Each option is labelled in the active language rather than * in its own — a reader who cannot find their way back out of a language they * picked by mistake is the one failure this screen must not have. */ export function LanguagePanel() { const t = useT(); const locale = useLocaleStore((s) => s.locale); const setLocale = useLocaleStore((s) => s.setLocale); return (

{t('settings.language.description')}

{LOCALES.map((option) => ( ))}
); }