browser-language-detector
v0.1.0
Published
A lightweight cross-browser JavaScript library for detecting browser and user language
Downloads
7
Maintainers
Readme
A lightweight cross-browser JavaScript library for detecting browser and user language.
Download
Installation
In a browser:
<script src="BrowserLanguageDetector.js"></script>
Using npm:
$ npm i --save browser-language-detector
Examples
So... it works like this:
BrowserLanguageDetector.lang; // en or your browser language