Do web browsers have an interface to access any of the locale settings as set in the operating system by the user?
I can detect what country the user is currently in from their IP address or using the new geolocation API, but I'm writing a browser app for travellers so I expect their current location to often not be their home country.
Is there any way to determine what country/locale the browser/OS is set to?
If not is there any proposal to add proper locale support to JavaScript?
Also are there any clever workarounds? (For instance I know I can get the user's preferred browsing language but there are plenty of countries which use the same language and plenty of users who keep this set to the default rather than changing it to their usual language.)
navigator.language
andgeolocation
I don't think so. – Etamine