4 ms·
Even setting aside languages spoken in multiple places, please leave the accept language header to languages, not regions. I have en us, because that's the lang
by Semaphor 3y ago
Even setting aside languages spoken in multiple places, please leave the accept language header to languages, not regions. I have en us, because that's the language I want, but I've never been in the US and probably never will.
- rightbyte 3y agoYe correct. But the context here is to provide 'top of list' items in a dropdown. E.g. German would be like 3 countries, unless Austria and Schweiz have their own language code. Uk and US got different codes. Diaspora languages could just have 0 added top items, etc. I also have us-en, to avoid these crappy machine translations you get sometimes.
- skissane 3y ago> German would be like 3 countries, unless Austria and Schweiz have their own language code. Officially, we have de-DE for German German, de-AT for Austrian German, de-CH for Swiss German, de-LI for Liechtenstein German – Chrome knows all of those. Plain "de" means German of unknown variant/dialect, but statistically is more likely Germany than any other country. German is also a secondary official language in Belgium (de-BE), Luxembourg (de-LU), Namibia (de-NA), and also in one region of Italy (de-IT), but software awareness of those German variants is less common (Chrome doesn't know about them, but some other software packages do, e.g. ICU and Microsoft .NET).
- skissane 3y ago> I have en us, because that's the language I want, but I've never been in the US and probably never will. On my personal laptop, I have en-US, because I don't know why. Maybe it is the default for Chrome? I have en-AU set on macOS at a system level but Chrome seems to have ignored that. I just reconfigured Chrome to add en-AU before en-US, so now my Accept-Language header is en-AU,en-US,en My work laptop has macOS set to en-AU but Chrome set to en-GB. I'm not sure how en-GB happened, possibly something my employer did for whatever reason.