Ask HN: How do you detect user language in web sites
I currently use the Accept-Language header, most of the browsers appear to just use `en-US` as the default. I am not sure if default installations in various countries have different default settings (for example `de-DE, de` if you download Firefox from Germany).
Second, I could use a small IPGeo database to determine the user country and map it to locale/language, but I really don't want to do it because it's not very user-friendly to those who travel or simply prefer English.
I will of course have a language select list and save this preference, but I'm interested to hear how I can make it user-friendly and do some guess work for the user without being annoying to those who prefer English as opposed to the what my app _think_ based on the location.