index.js
function getBrowserLanguage() {
  var first = window.navigator.languages
    ? window.navigator.languages[0]
    : null

  var lang = first
    || window.navigator.language
    || window.navigator.browserLanguage
    || window.navigator.userLanguage

  return lang
}
function getBrowserLanguage() {
  var first = window.navigator.languages
    ? window.navigator.languages[0]
    : null

  var lang = first
    || window.navigator.language
    || window.navigator.browserLanguage
    || window.navigator.userLanguage

  return lang
}
function getBrowserLanguage ( ) { var first = window . navigator . languages ? window . navigator . languages [ 0 ] : null var lang = first || window . navigator . language || window . navigator . browserLanguage || window . navigator . userLanguage return lang }
Get browser language.

@return {String}
Get browser language .