Package Exports
- locale2
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (locale2) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
locale2
Try as hard as possible to get that browser locale like en-US.
Notes
I intentionally made the code look like an OCD's dream because code is poetry so I got all artsy with it. I also smoked A LOT.
Contribute
I'm currently trying to properly hookup BrowserStack. If anyone has some tips on getting the following to play together, I'll add you as a collaborator!
- webpack
- rewire
- BrowserStack
Usage
npm install --no-optional
npm test
import locale2 from 'locale2'
> locale2
en-US
>
It also pairs well with iso3166-1!
var iso3166 = require('iso3166-1');
var locale2 = require('locale2');
> iso3166.from(locale2).to3()
USA
>
Thanks
Try it!
If we can't detect your locale, then we'll give you your money back! it's win-win!