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