fosrl.pangolin/src/components/LocaleSwitcher.tsx

43 lines
827 B
TypeScript
Raw Normal View History

import { useLocale } from "next-intl";
2025-05-04 15:11:42 +00:00
import LocaleSwitcherSelect from './LocaleSwitcherSelect';
export default function LocaleSwitcher() {
const locale = useLocale();
return (
<LocaleSwitcherSelect
defaultValue={locale}
items={[
{
value: 'en-US',
label: 'English'
2025-05-04 15:11:42 +00:00
},
{
value: 'fr-FR',
label: "Français"
},
2025-05-04 15:11:42 +00:00
{
value: 'de-DE',
label: 'Deutsch'
},
{
value: 'it-IT',
label: 'Italiano'
},
{
value: 'pl-PL',
label: 'Polski'
},
{
value: 'pt-PT',
label: 'Português'
},
{
value: 'tr-TR',
label: 'Türkçe'
2025-05-04 15:11:42 +00:00
}
]}
/>
);
}