Hacker News new | ask | show | jobs
by Yizahi 15 days ago
Hi. A have a user report, after visiting the site it automatically switched to a language based on my system locale, but not on my UI language or keyboard preference. So it is possible to visit the site from some guest PC for example where locale would be something unfamiliar. And the language selector is down at the very bottom (I guarantee that my mom for example would never find it) it is plain text and it is in the currently set language. So for example if I will get a page set to Chinese or Korean or Hindi, I wouldn't even understand where language selector is, it would be a set of glyphs unrecognizable to me. Or vice versa, let's say an Indian person would get a cyrillic text.

I suggest moving language selector to the header of the page and adding some icons to it - flags or English encodings (EN/DE/CN/RU/IN): https://en.wikipedia.org/wiki/List_of_ISO_639_language_codes

1 comments

Thanks for reporting this. Do you happen to know what your browser sends in the `Accept-Language` header?
I think this is what is sent from my side:

"name": "Accept-Language", "value": "en-US,uk-UA;q=0.9,uk;q=0.8,en;q=0.7"

"name": "User-Agent", "value": "Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:151.0) Gecko/20100101 Firefox/151.0"

Thanks, I've pushed a fix for this!
Works on my side now, thank you. ;)
Thanks for confirming!