Skip to content

  • Projects
  • Groups
  • Snippets
  • Help
  • This project
    • Loading...
  • Sign in / Register
M
mingPayPc
  • Overview
    • Overview
    • Details
    • Activity
    • Cycle Analytics
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
  • Issues 0
    • Issues 0
    • List
    • Board
    • Labels
    • Milestones
  • Merge Requests 0
    • Merge Requests 0
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Wiki
    • Wiki
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • fengzhaoyu
  • mingPayPc
  • Repository

Switch branch/tag
  • mingPayPc
  • node_modules
  • lcid
History Find file
  • Source code
  • Download zip
  • Download tar.gz
  • Download tar.bz2
  • Download tar
  • liang ce's avatar
    第一次提交等待部署 · 7fa45084
    liang ce authored 5 years ago
    7fa45084
Name
Last commit
Last update
..
index.js 第一次提交等待部署 5 years ago
lcid.json 第一次提交等待部署 5 years ago
license 第一次提交等待部署 5 years ago
package.json 第一次提交等待部署 5 years ago
readme.md 第一次提交等待部署 5 years 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 wherever.

Install

$ npm install lcid

Usage

const lcid = require('lcid');

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

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

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

License

MIT :copyright: Sindre Sorhus