@forked from pandeysoni
Map Stores ISO 639-1 language codes to language names and vice versa.
Supported languages:
en
ar
ml
hi
tl
ur
var languages = require('extended-language-list')();
console.log(languages.getLanguageName('bh', 'en')); // Bihari
console.log(languages.getLanguageCode('Bihari', 'en')); // bh
Usage:
var languages = require('extended-language-list')();
All input is case-insensitive.
Expects a language code, and the desired language.
Returns the language name for that language code in the desired language.
If not found, it returns undefined
.
Expects the language name, and the desired language.
Returns the language code for that language in the desired language.
If not found, it returns undefined
.
Returns an array of all language names in the desired language.
Returns an array of all language codes in the desired language.
Returns an array of all language information in the desired language, in the same format as it gets imported.
npm install extended-language-list
BSD