fix(i18n): correct Irish locale flag and language label

- Fix locale key in lang-list.json from "locale-ie-GA" to "locale-ga-IE"
  to match the actual locale code used in IntlProvider
- Add ga -> ie mapping in getFlagCodeForLocale() so the Ireland flag is
  shown instead of the Gabon flag
- Add missing ["ga", "ga-IE"] entry to check-locales.cjs validation list

Fixes NginxProxyManager/nginx-proxy-manager#5354
This commit is contained in:
Muhammet Eren Karakuş committed 2026-03-02 11:05:45 +03:00
1 parent c1d09eaceb
commit 278b1c92b3
3 files changed
+3 -1

No files matched your search

+1
View File
@@ -13,6 +13,7 @@ const allLocales = [
["es", "es-ES"], ["es", "es-ES"],
["et", "et-EE"], ["et", "et-EE"],
["fr", "fr-FR"], ["fr", "fr-FR"],
["ga", "ga-IE"],
["it", "it-IT"], ["it", "it-IT"],
["ja", "ja-JP"], ["ja", "ja-JP"],
["nl", "nl-NL"], ["nl", "nl-NL"],
+1
View File
@@ -72,6 +72,7 @@ const getFlagCodeForLocale = (locale?: string) => {
vi: "vn", // Vietnam vi: "vn", // Vietnam
ko: "kr", // Korea ko: "kr", // Korea
cs: "cz", // Czechia cs: "cz", // Czechia
ga: "ie", // Ireland (Irish)
}; };
if (specialCases[thisLocale]) { if (specialCases[thisLocale]) {
+1 -1
View File
@@ -8,7 +8,7 @@
"locale-et-EE": { "locale-et-EE": {
"defaultMessage": "Eesti" "defaultMessage": "Eesti"
}, },
"locale-ie-GA": { "locale-ga-IE": {
"defaultMessage": "Gaeilge" "defaultMessage": "Gaeilge"
}, },
"locale-de-DE": { "locale-de-DE": {