From 499c80bd8ad1617a047a04379479d7e0bf44e7a6 Mon Sep 17 00:00:00 2001 From: Imre Kristoffer Eilertsen Date: Sun, 17 Mar 2024 15:42:20 +0100 Subject: [PATCH] Fixed Belgian and Nepali flags for Windows Chromium users (#3914) * Added flagcode matching for Belgium specifically * Added a transparent Nepal flag --- src/img/flags-of-the-world/np.png | Bin 588 -> 1371 bytes src/js/i18n.js | 30 +++++++++++++++--------------- 2 files changed, 15 insertions(+), 15 deletions(-) diff --git a/src/img/flags-of-the-world/np.png b/src/img/flags-of-the-world/np.png index c47f80ee07081e9e39bba7104576e62c6e18b345..3ecd78d386523c821ee964313dbfe295f906f504 100644 GIT binary patch delta 1363 zcmV-Z1+4na1ltOb8Gi-<005G3V-^4a1tLjAK~#9!&6xw3V@nW)``O0Ywl`VZwr$(C z6|8OBwryiPvr1-To!9j;y}YAf_SW~EG5)XWcAcsYV@mZ7RzRDgX3d&RZX!5v>6t>^ zgVkIAmF(bB=bL~plqzt*)2#5U?6QIzovtO;q^N~-dB;%}ZGT*2S;-~e%LeY@-$ilj zpAzVvu>-zQ%p%B#Ora?!8#tle$*Levt`P+2VoJ>tR#5YoY~V-_{w{{GX|af ziu4KOYVOl%^Nx@5Y1KsXX|LfT`b`!8052ylgmKRaydUNZH=tXx1rPrz=KlG<{OA8I zE}6xf@B6eubC;L8gjaC7g_{uCbReD;Xvj0R22!D4x)nhc+9R-ZYZ&&PjJ4D|lU7CU z+#^9g&3^%xvwZXZ_6RPZcni2pW<>OwgvjOFAr*$*ClK0l2%N9<2x~PoP6y_Glu!Ru za0Wq!ameN#9f;SeRiJQ0yo6NPgCpFKyN-+U##yHmmqW!I14P@|&6G1z$M3WzDh}Pe z^@t%j*fBg#S=Qs$Lq452|6~F*atj>5N{;+GUVp75sA?A&b{yqpwt&KAv%z%i0zz91 zrtf>LEB}^4%PigSrBX$ZmpEizkDBnKWTol7U$j1X4P?kWmH?gHr{}RElYa5YAqHe< zgCaSH`dkHa4Hp^Y(mdg;W@5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if ( isBackgroundProcess !== true ) { const unicodeFlagToImageSrc = new Map([ [ '🇦🇱', 'al' ], [ '🇦🇷', 'ar' ], [ '🇦🇹', 'at' ], [ '🇧🇦', 'ba' ], - [ '🇧🇬', 'bg' ], [ '🇧🇷', 'br' ], [ '🇨🇦', 'ca' ], [ '🇨🇭', 'ch' ], - [ '🇨🇳', 'cn' ], [ '🇨🇴', 'co' ], [ '🇨🇾', 'cy' ], [ '🇨🇿', 'cz' ], - [ '🇩🇪', 'de' ], [ '🇩🇰', 'dk' ], [ '🇩🇿', 'dz' ], [ '🇪🇪', 'ee' ], - [ '🇪🇬', 'eg' ], [ '🇪🇸', 'es' ], [ '🇫🇮', 'fi' ], [ '🇫🇴', 'fo' ], - [ '🇫🇷', 'fr' ], [ '🇬🇷', 'gr' ], [ '🇭🇷', 'hr' ], [ '🇭🇺', 'hu' ], - [ '🇮🇩', 'id' ], [ '🇮🇱', 'il' ], [ '🇮🇳', 'in' ], [ '🇮🇷', 'ir' ], - [ '🇮🇸', 'is' ], [ '🇮🇹', 'it' ], [ '🇯🇵', 'jp' ], [ '🇰🇷', 'kr' ], - [ '🇰🇿', 'kz' ], [ '🇱🇰', 'lk' ], [ '🇱🇹', 'lt' ], [ '🇱🇻', 'lv' ], - [ '🇲🇦', 'ma' ], [ '🇲🇩', 'md' ], [ '🇲🇰', 'mk' ], [ '🇲🇽', 'mx' ], - [ '🇲🇾', 'my' ], [ '🇳🇱', 'nl' ], [ '🇳🇴', 'no' ], [ '🇳🇵', 'np' ], - [ '🇵🇱', 'pl' ], [ '🇵🇹', 'pt' ], [ '🇷🇴', 'ro' ], [ '🇷🇸', 'rs' ], - [ '🇷🇺', 'ru' ], [ '🇸🇦', 'sa' ], [ '🇸🇮', 'si' ], [ '🇸🇰', 'sk' ], - [ '🇸🇪', 'se' ], [ '🇸🇷', 'sr' ], [ '🇹🇭', 'th' ], [ '🇹🇯', 'tj' ], - [ '🇹🇼', 'tw' ], [ '🇹🇷', 'tr' ], [ '🇺🇦', 'ua' ], [ '🇺🇿', 'uz' ], - [ '🇻🇳', 'vn' ], [ '🇽🇰', 'xk' ], + [ '🇧🇪', 'be' ], [ '🇧🇬', 'bg' ], [ '🇧🇷', 'br' ], [ '🇨🇦', 'ca' ], + [ '🇨🇭', 'ch' ], [ '🇨🇳', 'cn' ], [ '🇨🇴', 'co' ], [ '🇨🇾', 'cy' ], + [ '🇨🇿', 'cz' ], [ '🇩🇪', 'de' ], [ '🇩🇰', 'dk' ], [ '🇩🇿', 'dz' ], + [ '🇪🇪', 'ee' ], [ '🇪🇬', 'eg' ], [ '🇪🇸', 'es' ], [ '🇫🇮', 'fi' ], + [ '🇫🇴', 'fo' ], [ '🇫🇷', 'fr' ], [ '🇬🇷', 'gr' ], [ '🇭🇷', 'hr' ], + [ '🇭🇺', 'hu' ], [ '🇮🇩', 'id' ], [ '🇮🇱', 'il' ], [ '🇮🇳', 'in' ], + [ '🇮🇷', 'ir' ], [ '🇮🇸', 'is' ], [ '🇮🇹', 'it' ], [ '🇯🇵', 'jp' ], + [ '🇰🇷', 'kr' ], [ '🇰🇿', 'kz' ], [ '🇱🇰', 'lk' ], [ '🇱🇹', 'lt' ], + [ '🇱🇻', 'lv' ], [ '🇲🇦', 'ma' ], [ '🇲🇩', 'md' ], [ '🇲🇰', 'mk' ], + [ '🇲🇽', 'mx' ], [ '🇲🇾', 'my' ], [ '🇳🇱', 'nl' ], [ '🇳🇴', 'no' ], + [ '🇳🇵', 'np' ], [ '🇵🇱', 'pl' ], [ '🇵🇹', 'pt' ], [ '🇷🇴', 'ro' ], + [ '🇷🇸', 'rs' ], [ '🇷🇺', 'ru' ], [ '🇸🇦', 'sa' ], [ '🇸🇮', 'si' ], + [ '🇸🇰', 'sk' ], [ '🇸🇪', 'se' ], [ '🇸🇷', 'sr' ], [ '🇹🇭', 'th' ], + [ '🇹🇯', 'tj' ], [ '🇹🇼', 'tw' ], [ '🇹🇷', 'tr' ], [ '🇺🇦', 'ua' ], + [ '🇺🇿', 'uz' ], [ '🇻🇳', 'vn' ], [ '🇽🇰', 'xk' ], ]); const reUnicodeFlags = new RegExp( Array.from(unicodeFlagToImageSrc).map(a => a[0]).join('|'),