Files
pangolin/src/components/LocaleSwitcher.tsx
Lokowitz 3d4b9d48e3 modified: src/components/LocaleSwitcher.tsx
modified:   src/i18n/config.ts
2025-05-04 17:20:01 +00:00

44 lines
817 B
TypeScript

import { useLocale } from 'next-intl';
import LocaleSwitcherSelect from './LocaleSwitcherSelect';
export default function LocaleSwitcher() {
const locale = useLocale();
return (
<LocaleSwitcherSelect
defaultValue={locale}
items={[
{
value: 'en-US',
label: 'Englisch'
},
{
value: 'fr-FR',
label: 'French'
},
{
value: 'de-DE',
label: 'German'
},
{
value: 'it-IT',
label: 'Italian'
},
{
value: 'pl-PL',
label: 'Polish'
},
{
value: 'pt-PT',
label: 'Portuguese'
},
{
value: 'tr-TR',
label: 'Turkish'
}
]}
label='Language'
/>
);
}