Merge pull request #5789 from quokkawiki/develop

Fixed Estonian flag bug
This commit is contained in:
jc21 authored and GitHub committed 2026-08-28 14:16:55 +10:00
commit 3f2cd26913
1 file changed
+11 -10
+11 -10
View File
@@ -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();