Sha256: b9785092e4079bd3a53111b5894de1efdaa25b44c5287d1d1a20e6a63b0aaacf

Contents?: true

Size: 826 Bytes

Versions: 35

Compression:

Stored size: 826 Bytes

Contents

# lcid [![Build Status](https://travis-ci.org/sindresorhus/lcid.svg?branch=master)](https://travis-ci.org/sindresorhus/lcid)

> Mapping between [standard locale identifiers](http://en.wikipedia.org/wiki/Locale) and [Windows locale identifiers (LCID)](http://en.wikipedia.org/wiki/Locale#Specifics_for_Microsoft_platforms)

Based on the [mapping](https://github.com/python/cpython/blob/be2a1a76fa43bb1ea1b3577bb5bdd506a2e90e37/Lib/locale.py#L1395-L1604) used in the Python standard library.

The mapping itself is just a [JSON file](lcid.json) and can be used wherever.


## Install

```
$ npm install --save lcid
```


## Usage

```js
var lcid = require('lcid');

lcid.from(1044);
//=> 'nb_NO'

lcid.to('nb_NO');
//=> 1044

lcid.all;
//=> {'af_ZA': 1078, ...}
```


## License

MIT © [Sindre Sorhus](http://sindresorhus.com)

Version data entries

35 entries across 35 versions & 15 rubygems

Version Path
optimacms-0.1.61 spec/dummy/node_modules/sass-graph/node_modules/lcid/readme.md
disco_app-0.18.0 test/dummy/node_modules/sass-graph/node_modules/lcid/readme.md
disco_app-0.18.2 test/dummy/node_modules/sass-graph/node_modules/lcid/readme.md
enju_library-0.3.8 spec/dummy/node_modules/sass-graph/node_modules/lcid/readme.md
ilog-0.4.1 node_modules/lcid/readme.md
ilog-0.4.0 node_modules/lcid/readme.md
ilog-0.3.3 node_modules/lcid/readme.md
jester-data-8.0.0 node_modules/sass-graph/node_modules/lcid/readme.md
ezii-os-5.2.1 node_modules/sass-graph/node_modules/lcid/readme.md
ezii-os-2.0.1 node_modules/sass-graph/node_modules/lcid/readme.md
ezii-os-1.1.0 node_modules/sass-graph/node_modules/lcid/readme.md
ezii-os-1.0.0 node_modules/sass-graph/node_modules/lcid/readme.md
ezii-os-0.0.0.1.0 node_modules/sass-graph/node_modules/lcid/readme.md
ezii-os-0.0.0.0.1 node_modules/sass-graph/node_modules/lcid/readme.md
optimacms-0.4.3 spec/dummy/node_modules/lcid/readme.md
optimacms-0.4.2 spec/dummy/node_modules/lcid/readme.md
locomotivecms-4.0.0.alpha1 app/javascript/node_modules/lcid/readme.md
lux_assets-0.2.11 ./node_modules/lcid/readme.md
lux_assets-0.2.9 ./node_modules/lcid/readme.md
lux_assets-0.2.4 ./node_modules/lcid/readme.md