get-browser-language

Get browser language.

Downloads in past

Stats

StarsIssuesVersionUpdatedCreatedSize
get-browser-language
301.0.08 years ago8 years agoMinified + gzip package size for get-browser-language in KB

Readme

get-browser-language
!NPM versionnpm-imgnpm-url !Licenselicense-imglicense-url
Get browser language.

Installation

npm install get-browser-language

Usage

var getBrowserLanguage = require('get-browser-language')

var lang = getBrowserLanguage()
console.log(lang) // => "sv-SE"

Caveats

Some (older) browsers may return a two-letter string (like sv) instead of a five-letter string (like sv-SE).

License

MITlicense-url