4 ms·
Why does setting the language based on location even happen? It seems like far more work to do that instead of just checking the `Accept-Language` header. When
by julianlam 6y ago
Why does setting the language based on location even happen? It seems like far more work to do that instead of just checking the `Accept-Language` header.
When I did it, I just mapped the browser language to our languages and called it a day, no complaints so far. So far as I know, most browsers send that header in.
- latchkey 6y agoThat's exactly what should happen, the problem is a lot of sites don't do that. I'm US, living in Vietnam and half the time the Facebook login screen turns up with Vietnamese and no way to change the language. If anything, this forced me to learn those 'login' words in Vietnamese.
- realusername 6y agoI can confirm having the exact same issue, Facebook isn't alone though. Google also tries to be clever and fails hard. There's only one way to get the preferred user language, it's to check the Accept-Language header, anything else will fail, please don't try to be clever.
- yakshaving_jgt 6y agoI'm British and also living in Vietnam currently, and this has also been my experience. Also, if I'm in Thailand all the Google search results are returned with timestamps converted to Buddhist calendar years. Genius. Is it unreasonable of me to be less tolerant of this brokenness when it comes from companies with all the money in the world, and also all the highest paid developers in the world? Imagine being able to invert a binary tree on a whiteboard, but not being able to follow a basic HTTP specification. Insane.