node package manager
Share your code. npm Orgs help your team discover, share, and reuse code. Create a free org »



Build status

Support for mapping between locale and the status. Easily extend by adding a locale file you want to use


Install with npm:

npm install locale-list

API - Queries

var ll = require('locale-list');

ll.shorten('ja_JP');         // => 'ja'
ll.toArray('ja_JP');         // => ['ja', 'ja_JP']'ja_JP', 'ja');      // => '日本語 日本'
ll.list()                    // => ['ja_JP', 'en_US', ...]

extend locales

add or change file in "lists" directory