Hacker News new | past | comments | ask | show | jobs | submit login

This is interesting as I've been working on localisation for an app I've made. It's in Electron. I find it super frustrating that when I ask for `navigator.languages` I get 'en-US' first, even though I have my language set to 'en-CA' (which showed up second, I think). I can only assume they were working around some dumb web software that didn't realise that if it didn't see your specific language code it should fall back to a more generic language. Anyone got tips for getting the most specific language code in the general case?



Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: