fix: update flag mappings and ignore dev artifacts

This commit is contained in:
2026-02-09 23:25:50 +01:00
parent 6f3ed143e5
commit 4a7c088776
2 changed files with 53 additions and 93 deletions

View File

@@ -61,7 +61,59 @@ const langToCountry = {
gl: 'es-ga',
cy: 'gb-wls',
gd: 'gb-sct',
eu: 'es-pv'
eu: 'es-pv',
af: 'za',
am: 'et',
hy: 'am',
az: 'az',
my: 'mm',
km: 'kh',
ceb: 'ph',
fa: 'ir',
gu: 'in',
ht: 'ht',
he: 'il',
ig: 'ng',
ilo: 'ph',
id: 'id',
ja: 'jp',
jv: 'id',
kn: 'in',
kk: 'kz',
rw: 'rw',
rn: 'bi',
ko: 'kr',
ku: 'tr',
ckb: 'iq',
ky: 'kg',
lo: 'la',
ms: 'my',
mr: 'in',
mn: 'mn',
ne: 'np',
om: 'et',
ps: 'af',
pa: 'in',
so: 'so',
sw: 'tz',
tl: 'ph',
ta: 'in',
te: 'in',
th: 'th',
bo: 'cn',
ti: 'er',
uz: 'uz',
vi: 'vn',
wo: 'sn',
yo: 'ng',
'pt-br': 'br',
'pt-pt': 'pt',
'fr-ca': 'ca',
'nl-be': 'be',
'es-es': 'es',
'es-419': 'mx',
'zh-hant': 'tw',
'zh-hans': 'cn'
};
const getFlagClass = (code) => {