mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-05 23:48:01 +00:00
modified: src/components/LocaleSwitcher.tsx
modified: src/i18n/config.ts
This commit is contained in:
@@ -12,9 +12,29 @@ export default function LocaleSwitcher() {
|
|||||||
value: 'en-US',
|
value: 'en-US',
|
||||||
label: 'Englisch'
|
label: 'Englisch'
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
value: 'fr-FR',
|
||||||
|
label: 'French'
|
||||||
|
},
|
||||||
{
|
{
|
||||||
value: 'de-DE',
|
value: 'de-DE',
|
||||||
label: 'German'
|
label: 'German'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'it-IT',
|
||||||
|
label: 'Italian'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'pl-PL',
|
||||||
|
label: 'Polish'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'pt-PT',
|
||||||
|
label: 'Portuguese'
|
||||||
|
},
|
||||||
|
{
|
||||||
|
value: 'tr-TR',
|
||||||
|
label: 'Turkish'
|
||||||
}
|
}
|
||||||
]}
|
]}
|
||||||
label='Language'
|
label='Language'
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
export type Locale = (typeof locales)[number];
|
export type Locale = (typeof locales)[number];
|
||||||
|
|
||||||
export const locales = ['en-US', 'de-DE'] as const;
|
export const locales = ['en-US', 'fr-FR', 'de-DE', 'it-IT', 'pl-PL', 'pt-PT', 'tr-TR'] as const;
|
||||||
export const defaultLocale: Locale = 'en-US';
|
export const defaultLocale: Locale = 'en-US';
|
||||||
Reference in New Issue
Block a user