News for hackers. Stuff that matters.
Re:Don't set the language of your website based on user loca... by xenomachina on Monday May 18, 2020 @12:32AM (#23218381)
The problem is that there's no way to explicitly say you want "en-US". If you're in a non-English speaking country and your Accept-Language is "en-US" then you're going to get the "local" language.

To make matters worse, Google uses ccTLDs for everywhere except the US. google.us just redirects to google.com, and google.com uses your IP to figure out your country, so you can't even use the domain as a workaround.

There are no comments on this comment yet.