universal-locale
v0.0.5
Published
get locale(language tag) from browser or system(nodejs)
Downloads
2
Maintainers
Readme
universal locale
get locale(language tag) from browser or system(nodejs)
installation
via npm
npm install universal-locale --save
via yarn
yarn add universal-locale
getting started
import getLocale from 'universal-locale';
console.log(getLocale()); // output language tag e.g. 'en-US'
reference
license
MIT