Skip to content

Map Stores ISO 639-1 language codes to language names and vice versa.

Notifications You must be signed in to change notification settings

pandeysoni/language-list

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

language-list

Map Stores ISO 639-1 language codes to language names and vice versa.

example

var languages = require('language-list')();

console.log(languages.getLanguageName('bh')); // Bihari
console.log(languages.getLanguageCode('Bihari')); // bh

methods

Usage:

var languages = require('language-list')();

All input is case-insensitive.

getLanguageName(languageCode)

Expects the language code. Returns the language name for that language code. If not found, it returns undefined.

getLanguageCode(languageName)

Expects the language name. Returns the language code for that language. If not found, it returns undefined.

getLanguageNames()

Returns an array of all language names.

getLanguageCodes()

Returns an array of all language codes.

getData()

Returns an array of all language information, in the same format as it gets imported.

install

npm install language-list

license

BSD

About

Map Stores ISO 639-1 language codes to language names and vice versa.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 4

  •  
  •  
  •  
  •