学习?学个屁 06c63c15cc 初始化提交 3 weeks ago
..
index.d.ts 06c63c15cc 初始化提交 3 weeks ago
index.js 06c63c15cc 初始化提交 3 weeks ago
lcid.json 06c63c15cc 初始化提交 3 weeks ago
lcid.json.d.ts 06c63c15cc 初始化提交 3 weeks ago
license 06c63c15cc 初始化提交 3 weeks ago
package.json 06c63c15cc 初始化提交 3 weeks ago
readme.md 06c63c15cc 初始化提交 3 weeks ago

readme.md

lcid Build Status

Mapping between standard locale identifiers and Windows locale identifiers (LCID)

Based on the mapping used in the Python standard library.

The mapping itself is just a JSON file and can be used anywhere.

Install

$ npm install lcid

Usage

const lcid = require('lcid');

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

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

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

Get professional support for this package with a Tidelift subscription
Tidelift helps make open source sustainable for maintainers while giving companies
assurances about security, maintenance, and licensing for their dependencies.