From 92507359b48db08b0066047d6505660b8c8b0b12 Mon Sep 17 00:00:00 2001 From: Ryan Cohen Date: Tue, 19 Sep 2023 10:29:53 +0900 Subject: [PATCH] feat: add ko language (#3619) --- src/context/LanguageContext.tsx | 5 +++++ src/pages/_app.tsx | 2 ++ 2 files changed, 7 insertions(+) diff --git a/src/context/LanguageContext.tsx b/src/context/LanguageContext.tsx index 115f4f4b..e6164af7 100644 --- a/src/context/LanguageContext.tsx +++ b/src/context/LanguageContext.tsx @@ -14,6 +14,7 @@ export type AvailableLocale = | 'hu' | 'it' | 'ja' + | 'ko' | 'lt' | 'nb-NO' | 'nl' @@ -125,6 +126,10 @@ export const availableLanguages: AvailableLanguageObject = { code: 'ja', display: '日本語', }, + ko: { + code: 'ko', + display: '한국어', + }, 'zh-TW': { code: 'zh-TW', display: '繁體中文', diff --git a/src/pages/_app.tsx b/src/pages/_app.tsx index 5730e410..ceb5734e 100644 --- a/src/pages/_app.tsx +++ b/src/pages/_app.tsx @@ -50,6 +50,8 @@ const loadLocaleData = (locale: AvailableLocale): Promise => { return import('../i18n/locale/it.json'); case 'ja': return import('../i18n/locale/ja.json'); + case 'ko': + return import('../i18n/locale/ko.json'); case 'lt': return import('../i18n/locale/lt.json'); case 'nb-NO':