mirror of
https://github.com/fosrl/pangolin.git
synced 2025-07-31 08:04:54 +02:00
modified: src/components/LocaleSwitcher.tsx
modified: src/i18n/config.ts
This commit is contained in:
parent
9e572685ba
commit
3d4b9d48e3
2 changed files with 21 additions and 1 deletions
|
@ -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';
|
Loading…
Add table
Add a link
Reference in a new issue