Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

langmap

alicoding35.2kMPL-2.00.0.16TypeScript support: definitely-typed

List of all the known languages in their English and Native name with locales

locales, map, languages, list, l10n, localization, world, native language, English language, list of languages

readme

language-mapping-list

List of all the known languages in their English and Native name with locales.

There are over 200 languages available in the list.

$ npm install langmap

Usage:

var langmap = require("langmap");

"Native" => English (US)
var native = langmap["en-US"]["nativeName"];
"Native" => ภาษาไทย
var native = langmap["th"]["nativeName"];
"English" => Thai
var native = langmap["th"]["englishName"];