Security update to Drupal 8.4.6
[yaffs-website] / node_modules / lcid / readme.md
1 # lcid [![Build Status](https://travis-ci.org/sindresorhus/lcid.svg?branch=master)](https://travis-ci.org/sindresorhus/lcid)
2
3 > 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)
4
5 Based on the [mapping](https://github.com/python/cpython/blob/be2a1a76fa43bb1ea1b3577bb5bdd506a2e90e37/Lib/locale.py#L1395-L1604) used in the Python standard library.
6
7 The mapping itself is just a [JSON file](lcid.json) and can be used wherever.
8
9
10 ## Install
11
12 ```
13 $ npm install --save lcid
14 ```
15
16
17 ## Usage
18
19 ```js
20 var lcid = require('lcid');
21
22 lcid.from(1044);
23 //=> 'nb_NO'
24
25 lcid.to('nb_NO');
26 //=> 1044
27
28 lcid.all;
29 //=> {'af_ZA': 1078, ...}
30 ```
31
32
33 ## License
34
35 MIT © [Sindre Sorhus](http://sindresorhus.com)