bukinoshita / detect-browser-language

Detect browser language
MIT License
37 stars 3 forks source link

Doesn't work on IE 11 #1

Closed PavelHasala closed 4 years ago

PavelHasala commented 6 years ago

Breaks down on module export with Syntax error

module.exports = () =>
  (navigator.languages && navigator.languages[0]) ||
  navigator.language ||
  navigator.userLanguage

I know it is trendy to just ditch everything that is older than 3 months, but unfortunately a lot of users are still on windows 7 using IE 11.

joh-klein commented 4 years ago

fixed with #3