Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

fyi, you can automatically detect the user's language and switch to English when applicable by using `navigator.language`...

...or even better, don't use JS (which doesn't work on older browsers and prevents some optimizations), and read the Accept-Language header instead



And please do NOT do what gogle does and pretend that certain values in the Accept-Language header don't indicate a user preference and you should guess based on the IP address instead.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: