title: How do you convert a language code to the language name in JavaScript?
body: <p>I'm getting the browser's language code using:</p>
  
  <pre><code>var lang = window.navigator.language;
  </code></pre>
  
  <p>This returns the code (i.e. en-US). How do I convert this to the language name (i.e. English)?</p>