diff --git a/frontend/src/locale/IntlProvider.tsx b/frontend/src/locale/IntlProvider.tsx index 5482f63c..9113df07 100755 --- a/frontend/src/locale/IntlProvider.tsx +++ b/frontend/src/locale/IntlProvider.tsx @@ -11,6 +11,7 @@ import langRu from "./lang/ru.json"; import langSk from "./lang/sk.json"; import langVi from "./lang/vi.json"; import langZh from "./lang/zh.json"; +import langKo from "./lang/ko.json"; // first item of each array should be the language code, // not the country code @@ -27,6 +28,7 @@ const localeOptions = [ ["sk", "sk-SK", langSk], ["vi", "vi-VN", langVi], ["zh", "zh-CN", langZh], + ["ko", "ko-KR", langKo], ]; const loadMessages = (locale?: string): typeof langList & typeof langEn => { @@ -47,7 +49,7 @@ const getFlagCodeForLocale = (locale?: string) => { const specialCases: Record = { ja: "jp", // Japan zh: "cn", // China - vi: "vn", // Vietnam + ko: "kr", // Korea }; if (specialCases[thisLocale]) {