mirror of
https://github.com/NginxProxyManager/nginx-proxy-manager.git
synced 2025-12-06 00:16:49 +00:00
Update Korean language support
This commit is contained in:
@@ -11,6 +11,7 @@ import langRu from "./lang/ru.json";
|
|||||||
import langSk from "./lang/sk.json";
|
import langSk from "./lang/sk.json";
|
||||||
import langVi from "./lang/vi.json";
|
import langVi from "./lang/vi.json";
|
||||||
import langZh from "./lang/zh.json";
|
import langZh from "./lang/zh.json";
|
||||||
|
import langKo from "./lang/ko.json";
|
||||||
|
|
||||||
// first item of each array should be the language code,
|
// first item of each array should be the language code,
|
||||||
// not the country code
|
// not the country code
|
||||||
@@ -27,6 +28,7 @@ const localeOptions = [
|
|||||||
["sk", "sk-SK", langSk],
|
["sk", "sk-SK", langSk],
|
||||||
["vi", "vi-VN", langVi],
|
["vi", "vi-VN", langVi],
|
||||||
["zh", "zh-CN", langZh],
|
["zh", "zh-CN", langZh],
|
||||||
|
["ko", "ko-KR", langKo],
|
||||||
];
|
];
|
||||||
|
|
||||||
const loadMessages = (locale?: string): typeof langList & typeof langEn => {
|
const loadMessages = (locale?: string): typeof langList & typeof langEn => {
|
||||||
@@ -47,7 +49,7 @@ const getFlagCodeForLocale = (locale?: string) => {
|
|||||||
const specialCases: Record<string, string> = {
|
const specialCases: Record<string, string> = {
|
||||||
ja: "jp", // Japan
|
ja: "jp", // Japan
|
||||||
zh: "cn", // China
|
zh: "cn", // China
|
||||||
vi: "vn", // Vietnam
|
ko: "kr", // Korea
|
||||||
};
|
};
|
||||||
|
|
||||||
if (specialCases[thisLocale]) {
|
if (specialCases[thisLocale]) {
|
||||||
|
|||||||
Reference in New Issue
Block a user