I am trying to determine the browser's language set on Google Chrome, in Settings → Language and input settings, using JavaScript.
I'm trying to do this like so:
var lng=window.navigator.language; 
alert(lng);
In Firefox, is working fine, showing the correct language. 
I am searching for a way to determine this in Google Chrome, because for the case can-Fr, it shows to me en-US.
 
     
     
    