File tree Expand file tree Collapse file tree 1 file changed +3
-1
lines changed
Expand file tree Collapse file tree 1 file changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -11,6 +11,7 @@ import langRu from "./lang/ru.json";
1111import langSk from "./lang/sk.json" ;
1212import langVi from "./lang/vi.json" ;
1313import 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
3234const 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 ] ) {
You can’t perform that action at this time.
0 commit comments