Skip to content

Commit 3cb124d

Browse files
authored
Update Korean language support
1 parent 03b0513 commit 3cb124d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

frontend/src/locale/IntlProvider.tsx

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@ import langRu from "./lang/ru.json";
1111
import langSk from "./lang/sk.json";
1212
import langVi from "./lang/vi.json";
1313
import langZh from "./lang/zh.json";
14+
import langKo from "./lang/ko.json";
1415

1516
// first item of each array should be the language code,
1617
// not the country code
@@ -27,6 +28,7 @@ const localeOptions = [
2728
["sk", "sk-SK", langSk],
2829
["vi", "vi-VN", langVi],
2930
["zh", "zh-CN", langZh],
31+
["ko", "ko-KR", langKo],
3032
];
3133

3234
const loadMessages = (locale?: string): typeof langList & typeof langEn => {
@@ -47,7 +49,7 @@ const getFlagCodeForLocale = (locale?: string) => {
4749
const specialCases: Record<string, string> = {
4850
ja: "jp", // Japan
4951
zh: "cn", // China
50-
vi: "vn", // Vietnam
52+
ko: "kr", // Korea
5153
};
5254

5355
if (specialCases[thisLocale]) {

0 commit comments

Comments
 (0)