3 ms·
We had a discussion about this kind of thing and associated pitfalls, a couple of weeks back: https://news.ycombinator.com/item?id=23216502 https://news.ycombi
by Normille 6y ago
We had a discussion about this kind of thing and associated pitfalls, a couple of weeks back:
https://news.ycombinator.com/item?id=23216502 https://news.ycombinator.com/item?id=23216502
After the hassles I've had with Yandex Browser [as mentioned in the above] I'd say; don't try and detect it. Let the user select their preferred language.
Or, if you really insist on trying to be clever by detecting user language --for the love of all that's holy, give the user an easy way to change it if [when!] you get it wrong!
Few things more annoying that a page which loads in the 'wrong' language and then, even if you select the 'right' one, automatically reloads the wrong one again, because the developer wanted to show off some fancy "I know what you want better than you do!" scripting.
- zeeZ 6y agoEven worse, it redirects you to the landing page instead of the different language version of the page you were just on. It's so bad before even trying to look for a language toggle I see if I can replace "de" with "en" in the URL somewhere, drop it altogether, or append a "hl=en" query parameter.