From 3d4b9d48e36a856a7eec8e75db36a9022121492c Mon Sep 17 00:00:00 2001 From: Lokowitz Date: Sun, 4 May 2025 17:20:01 +0000 Subject: [PATCH] modified: src/components/LocaleSwitcher.tsx modified: src/i18n/config.ts --- src/components/LocaleSwitcher.tsx | 20 ++++++++++++++++++++ src/i18n/config.ts | 2 +- 2 files changed, 21 insertions(+), 1 deletion(-) diff --git a/src/components/LocaleSwitcher.tsx b/src/components/LocaleSwitcher.tsx index d7869326..962b39bb 100644 --- a/src/components/LocaleSwitcher.tsx +++ b/src/components/LocaleSwitcher.tsx @@ -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' diff --git a/src/i18n/config.ts b/src/i18n/config.ts index 7e71f24b..030d7f71 100644 --- a/src/i18n/config.ts +++ b/src/i18n/config.ts @@ -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'; \ No newline at end of file