mirror of
https://github.com/Alvin-Zilverstand/nginx-proxy-manager.git
synced 2026-11-26 08:03:06 +01:00
Merge pull request #5789 from quokkawiki/develop
Fixed Estonian flag bug
This commit is contained in:
1 file changed
+11
-10
@@ -67,16 +67,17 @@ const loadMessages = (locale?: string): typeof langList & typeof langEn => {
|
|||||||
const getFlagCodeForLocale = (locale?: string) => {
|
const getFlagCodeForLocale = (locale?: string) => {
|
||||||
const thisLocale = (locale || "en").slice(0, 2);
|
const thisLocale = (locale || "en").slice(0, 2);
|
||||||
|
|
||||||
// only add to this if your flag is different from the locale code
|
// only add to this if your flag is different from the locale code
|
||||||
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
|
vi: "vn", // Vietnam
|
||||||
ko: "kr", // Korea
|
ko: "kr", // Korea
|
||||||
cs: "cz", // Czechia
|
cs: "cz", // Czechia
|
||||||
ga: "ie", // Ireland (Irish)
|
ga: "ie", // Ireland (Irish)
|
||||||
uk: "ua", // Ukraine
|
et: "ee", // Estonia
|
||||||
};
|
uk: "ua", // Ukraine
|
||||||
|
};
|
||||||
|
|
||||||
if (specialCases[thisLocale]) {
|
if (specialCases[thisLocale]) {
|
||||||
return specialCases[thisLocale].toUpperCase();
|
return specialCases[thisLocale].toUpperCase();
|
||||||
|
|||||||
Reference in new issue
Block a user