modified: src/components/LocaleSwitcher.tsx

modified:   src/i18n/config.ts
This commit is contained in:
Lokowitz 2025-05-04 17:20:01 +00:00
parent 9e572685ba
commit 3d4b9d48e3
2 changed files with 21 additions and 1 deletions

View file

@ -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'

View file

@ -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';