4 ms·
Websites can only guess the language until the user explicitly choses. Accept-Language is a good guess, but as you pointed out it often defaults to English, or
by madeofpalk 1y ago
Websites can only guess the language until the user explicitly choses. Accept-Language is a good guess, but as you pointed out it often defaults to English, or it may transmit language codes the website doesn't support (It sends `es-MX`, but website only supports `es-ES`). The website still has to guess.
- Filligree 1y agoEnglish is in fact my primary language. It may be the default, but I cannot set it to something else. I have explicitly chosen to leave it on the default, and would like websites to accept this.
- ryandrake 1y agoThere shouldn't be a default. By default, browsers should just not send the header, which would signal the web site to do whatever stupid thing its developers conjure up. But if the header is sent, it should override the server-side-stupidity. This would solve the "but by default it's English!" objection.
- account42 1y agoCurrently Browsers default to sending the Browser/OS UI language. Which is an good default because users can understand that language (they are using that for the UI after all) unlike whatever your GeoIP provider says. The "but by default it's English!" objection never had any merit.