lcid
Version:
Mapping between standard locale identifiers and Windows locale identifiers (LCID)
27 lines (17 loc) • 488 B
Markdown
> Mapping between [standard locale identifiers](https://en.wikipedia.org/wiki/Locale_(computer_software)) and [Windows locale identifiers (LCID)](https://en.wikipedia.org/wiki/Locale#Specifics_for_Microsoft_platforms)
The mapping itself is just a [JSON file](lcid.json) and can be used anywhere.
```sh
npm install lcid
```
```js
import lcid from 'lcid';
lcid.from(1044);
//=> 'nb_NO'
lcid.to('nb_NO');
//=> 1044
lcid.all;
//=> {'af_ZA': 1078, …}
```