mirror of
https://github.com/fosrl/pangolin.git
synced 2025-12-03 14:44:40 +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',
|
||||
label: 'Englisch'
|
||||
},
|
||||
{
|
||||
value: 'fr-FR',
|
||||
label: 'French'
|
||||
},
|
||||
{
|
||||
value: 'de-DE',
|
||||
label: 'German'
|
||||
},
|
||||
{
|
||||
value: 'it-IT',
|
||||
label: 'Italian'
|
||||
},
|
||||
{
|
||||
value: 'pl-PL',
|
||||
label: 'Polish'
|
||||
},
|
||||
{
|
||||
value: 'pt-PT',
|
||||
label: 'Portuguese'
|
||||
},
|
||||
{
|
||||
value: 'tr-TR',
|
||||
label: 'Turkish'
|
||||
}
|
||||
]}
|
||||
label='Language'
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
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';
|
||||
Reference in New Issue
Block a user