mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-23 14:43:09 +01:00
Add Ukrainian locale
This commit is contained in:
1 parent
934a3fafe5
commit
d77d5c643d
12 files changed
+852
-1
No files matched your search
@@ -21,6 +21,7 @@ import langZh from "./lang/zh.json";
|
||||
import langTr from "./lang/tr.json";
|
||||
import langHu from "./lang/hu.json";
|
||||
import langNo from "./lang/no.json";
|
||||
import langUk from "./lang/uk.json";
|
||||
import langList from "./lang/lang-list.json";
|
||||
|
||||
// first item of each array should be the language code,
|
||||
@@ -49,6 +50,7 @@ const localeOptions = [
|
||||
["tr", "tr-TR", langTr],
|
||||
["hu", "hu-HU", langHu],
|
||||
["no", "no-NO", langNo],
|
||||
["uk", "uk-UA", langUk],
|
||||
];
|
||||
|
||||
const loadMessages = (locale?: string): typeof langList & typeof langEn => {
|
||||
@@ -73,6 +75,7 @@ const getFlagCodeForLocale = (locale?: string) => {
|
||||
ko: "kr", // Korea
|
||||
cs: "cz", // Czechia
|
||||
ga: "ie", // Ireland (Irish)
|
||||
uk: "ua", // Ukraine
|
||||
};
|
||||
|
||||
if (specialCases[thisLocale]) {
|
||||
|
||||
Reference in new issue
Block a user