2025-06-03 21:10:00 +03:00
|
|
|
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={[
|
|
|
|
{
|
2025-06-03 21:10:00 +03:00
|
|
|
value: 'en-US',
|
|
|
|
label: 'English'
|
2025-05-04 15:11:42 +00:00
|
|
|
},
|
2025-05-04 17:20:01 +00:00
|
|
|
{
|
2025-06-03 21:10:00 +03:00
|
|
|
value: 'fr-FR',
|
|
|
|
label: "Français"
|
2025-05-04 17:20:01 +00:00
|
|
|
},
|
2025-05-04 15:11:42 +00:00
|
|
|
{
|
2025-06-03 21:10:00 +03:00
|
|
|
value: 'de-DE',
|
|
|
|
label: 'Deutsch'
|
2025-05-04 17:20:01 +00:00
|
|
|
},
|
|
|
|
{
|
2025-06-03 21:10:00 +03:00
|
|
|
value: 'it-IT',
|
|
|
|
label: 'Italiano'
|
2025-05-04 17:20:01 +00:00
|
|
|
},
|
|
|
|
{
|
2025-06-03 21:10:00 +03:00
|
|
|
value: 'pl-PL',
|
|
|
|
label: 'Polski'
|
2025-05-04 17:20:01 +00:00
|
|
|
},
|
|
|
|
{
|
2025-06-03 21:10:00 +03:00
|
|
|
value: 'pt-PT',
|
|
|
|
label: 'Português'
|
2025-05-04 17:20:01 +00:00
|
|
|
},
|
|
|
|
{
|
2025-06-03 21:10:00 +03:00
|
|
|
value: 'tr-TR',
|
|
|
|
label: 'Türkçe'
|
2025-05-04 15:11:42 +00:00
|
|
|
}
|
|
|
|
]}
|
|
|
|
/>
|
|
|
|
);
|
|
|
|
}
|