From e885676ad8585d4f9786419f71c5fab1b60f0471 Mon Sep 17 00:00:00 2001 From: Marvin <127591405+Lokowitz@users.noreply.github.com> Date: Thu, 5 Jun 2025 17:30:49 +0000 Subject: [PATCH] add chinese --- src/components/LocaleSwitcher.tsx | 4 ++++ src/i18n/config.ts | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/src/components/LocaleSwitcher.tsx b/src/components/LocaleSwitcher.tsx index 651a70e6..a47c6898 100644 --- a/src/components/LocaleSwitcher.tsx +++ b/src/components/LocaleSwitcher.tsx @@ -35,6 +35,10 @@ export default function LocaleSwitcher() { { value: 'tr-TR', label: 'Türkçe' + }, + { + value: 'zh-CN', + label: '中国人' } ]} /> diff --git a/src/i18n/config.ts b/src/i18n/config.ts index 030d7f71..7580320b 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', 'fr-FR', 'de-DE', 'it-IT', 'pl-PL', 'pt-PT', 'tr-TR'] as const; +export const locales = ['en-US', 'fr-FR', 'de-DE', 'it-IT', 'pl-PL', 'pt-PT', 'tr-TR', 'zh-CN'] as const; export const defaultLocale: Locale = 'en-US'; \ No newline at end of file