universal-locale
TypeScript icon, indicating that this package has built-in type declarations

0.0.5 • Public • Published

universal locale

get locale(language tag) from browser or system(nodejs)

Build Status Coverage Status

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

Package Sidebar

Install

npm i universal-locale

Weekly Downloads

1

Version

0.0.5

License

MIT

Unpacked Size

31.3 kB

Total Files

16

Last publish

Collaborators

  • noob9527