From 1983d0067d248aca020b83a82297aa415538416e Mon Sep 17 00:00:00 2001 From: Daeho Ro <40587651+daeho-ro@users.noreply.github.com> Date: Sat, 12 Jul 2025 13:21:14 +0900 Subject: [PATCH] Add Korean translations --- messages/{ko.json => ko-KR.json} | 0 src/components/LocaleSwitcher.tsx | 4 ++++ src/i18n/config.ts | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) rename messages/{ko.json => ko-KR.json} (100%) diff --git a/messages/ko.json b/messages/ko-KR.json similarity index 100% rename from messages/ko.json rename to messages/ko-KR.json diff --git a/src/components/LocaleSwitcher.tsx b/src/components/LocaleSwitcher.tsx index 080c8f7b..fe1dece5 100644 --- a/src/components/LocaleSwitcher.tsx +++ b/src/components/LocaleSwitcher.tsx @@ -48,6 +48,10 @@ export default function LocaleSwitcher() { { value: 'zh-CN', label: '简体中文' + }, + { + value: 'ko-KR', + label: '한국어' } ]} /> diff --git a/src/i18n/config.ts b/src/i18n/config.ts index 305d66d3..9871a199 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', 'es-ES', 'fr-FR', 'de-DE', 'nl-NL', 'it-IT', 'pl-PL', 'pt-PT', 'tr-TR', 'zh-CN'] as const; +export const locales = ['en-US', 'es-ES', 'fr-FR', 'de-DE', 'nl-NL', 'it-IT', 'pl-PL', 'pt-PT', 'tr-TR', 'zh-CN', 'ko-KR'] as const; export const defaultLocale: Locale = 'en-US'; \ No newline at end of file