lokalise / i18n-ally

🌍 All in one i18n extension for VS Code
https://marketplace.visualstudio.com/items?itemName=lokalise.i18n-ally
MIT License
4k stars 322 forks source link

Slovene is mistakenly translated to Sinhala language #811

Open LGaljo opened 2 years ago

LGaljo commented 2 years ago

Describe the bug When translating any other language to Slovene, the translation is done into Sinhala language. Our region is set to si, which wrong according to ISO 639-1 standard. However this extension shows slovene flag in UI. See in attached screenshot. Correct ISO 639-1 code is sl.

Extension Version v2.8.1

Framework/i18n package you are using "nuxt-i18n": "^5.12.7"

Screenshots image

movermeyer commented 1 year ago

The flag portion could be fixed by adding an entry in DEFAULT_LOCALE_COUNTRY_MAP:

'si': 'lk', // Sinhala -> Sri Lanka

(Aside: you can override this value locally with the i18n-ally.localeCountryMap setting)