Is there any way to get the browser language or something like that to know which language is client using?
I’m talking about node.js =)
thanks
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
As with any other HTTP server, the key here is the
Accept-Languageheader that the browser sends with each request. See the HTTP 1.1 spec and the Accept-Language used for locale setting W3C FAQ page.The actual code for reading the value of an HTTP varies depending on exactly which frameworks you’re using (“vanilla” Node, Express, etc.).