mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-30 07:35:15 +02:00
remove language translation
This commit is contained in:
parent
d460dd35c7
commit
9d68c5666f
3 changed files with 26 additions and 10 deletions
|
@ -1,8 +1,7 @@
|
|||
import { useLocale, useTranslations } from 'next-intl';
|
||||
import { useLocale } from 'next-intl';
|
||||
import LocaleSwitcherSelect from './LocaleSwitcherSelect';
|
||||
|
||||
export default function LocaleSwitcher() {
|
||||
const t = useTranslations('locales');
|
||||
const locale = useLocale();
|
||||
|
||||
return (
|
||||
|
@ -11,14 +10,14 @@ export default function LocaleSwitcher() {
|
|||
items={[
|
||||
{
|
||||
value: 'en-US',
|
||||
label: t('en-US')
|
||||
label: 'Englisch'
|
||||
},
|
||||
{
|
||||
value: 'de-DE',
|
||||
label: t('de-DE')
|
||||
label: 'German'
|
||||
}
|
||||
]}
|
||||
label={t('label')}
|
||||
label='Language'
|
||||
/>
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue