Get visitors language & country code with javascript (client-side) [duplicate]
This question already has an answer here: Best way to determine user's locale within browser 7 answers Question: Is there a javascript (client-side) code to get visitors country/language code, that is accurate and is cross-"modern"-browser ? I am looking for results like 'en-US' , 'sv-SE' , 'nl-NL' , etc. Related questions to this have been asked before (some SO links: 1 , 2 , 3 , 4 , among others) but I didn't find answer and some of the answers are some yearls old and in some cases referring to even more old articles, which makes me think there are new solutions for this. I tried : var