fixthestatusquo/proca

map country->language

tttp opened this issue · 0 comments

tttp commented

Hi,

We have regularly requests to use the language of the target (selected based on the country)

could you write a map that gets the main languages for a country (EU27)?

eg country2language = {
"fr":"fr",
"at":"de",
"se":"sv"
...
//special cases
"be":["nl","fr"],
"lu":["de","fr"],
}

// the list of languages you have set:
const locales = ["ar", "bg", "ca", "ce", "cs", "da", "de", "el", "en", "en_GB", "es", "et", "eu",
"fi", "fr", "fr_CA", "fr@informal", "ga", "ha", "he", "hi", "hr", "hu", "it", "lt",
"lv", "me", "mt", "nl", "pl", "pt", "ro", "rom", "ru", "sk", "sl", "sr", "sv", "uk", "yo"];