mirror of
https://github.com/fosrl/pangolin.git
synced 2026-02-19 03:16:40 +00:00
clean up ui pass 1
This commit is contained in:
@@ -1,55 +1,55 @@
|
||||
import { useLocale } from "next-intl";
|
||||
import LocaleSwitcherSelect from './LocaleSwitcherSelect';
|
||||
import LocaleSwitcherSelect from "./LocaleSwitcherSelect";
|
||||
|
||||
export default function LocaleSwitcher() {
|
||||
const locale = useLocale();
|
||||
const locale = useLocale();
|
||||
|
||||
return (
|
||||
<LocaleSwitcherSelect
|
||||
label="Select language"
|
||||
defaultValue={locale}
|
||||
items={[
|
||||
{
|
||||
value: 'en-US',
|
||||
label: 'English'
|
||||
},
|
||||
{
|
||||
value: 'fr-FR',
|
||||
label: "Français"
|
||||
},
|
||||
{
|
||||
value: 'de-DE',
|
||||
label: 'Deutsch'
|
||||
},
|
||||
{
|
||||
value: 'it-IT',
|
||||
label: 'Italiano'
|
||||
},
|
||||
{
|
||||
value: 'nl-NL',
|
||||
label: 'Nederlands'
|
||||
},
|
||||
{
|
||||
value: 'pl-PL',
|
||||
label: 'Polski'
|
||||
},
|
||||
{
|
||||
value: 'pt-PT',
|
||||
label: 'Português'
|
||||
},
|
||||
{
|
||||
value: 'es-ES',
|
||||
label: 'Español'
|
||||
},
|
||||
{
|
||||
value: 'tr-TR',
|
||||
label: 'Türkçe'
|
||||
},
|
||||
{
|
||||
value: 'zh-CN',
|
||||
label: '简体中文'
|
||||
}
|
||||
]}
|
||||
/>
|
||||
);
|
||||
return (
|
||||
<LocaleSwitcherSelect
|
||||
label="Select language"
|
||||
defaultValue={locale}
|
||||
items={[
|
||||
{
|
||||
value: "en-US",
|
||||
label: "English"
|
||||
},
|
||||
{
|
||||
value: "fr-FR",
|
||||
label: "Français"
|
||||
},
|
||||
{
|
||||
value: "de-DE",
|
||||
label: "Deutsch"
|
||||
},
|
||||
{
|
||||
value: "it-IT",
|
||||
label: "Italiano"
|
||||
},
|
||||
{
|
||||
value: "nl-NL",
|
||||
label: "Nederlands"
|
||||
},
|
||||
{
|
||||
value: "pl-PL",
|
||||
label: "Polski"
|
||||
},
|
||||
{
|
||||
value: "pt-PT",
|
||||
label: "Português"
|
||||
},
|
||||
{
|
||||
value: "es-ES",
|
||||
label: "Español"
|
||||
},
|
||||
{
|
||||
value: "tr-TR",
|
||||
label: "Türkçe"
|
||||
},
|
||||
{
|
||||
value: "zh-CN",
|
||||
label: "简体中文"
|
||||
}
|
||||
]}
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user