Package Exports
- iso-639-3
- iso-639-3/to-1
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (iso-639-3) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
iso-639-3
ISO 639-3 codes in an accessible format, all of them.
Also includes pre-built indexes to map from 639-3 codes to other codes:
iso-639-3/to-1— Map ISO 639-3 codes to ISO 639-1 codesiso-639-3/to-2b— Map ISO 639-3 codes to bibliographic ISO 639-2 codesiso-639-3/to-2t— Map ISO 639-3 codes to terminologic ISO 639-2 codes
Install
npm:
npm install iso-639-3Use
var iso6393 = require('iso-639-3')
console.log(iso6393.slice(1820, 1830))Yields:
[
{name: 'En', type: 'living', scope: 'individual', iso6393: 'enc'},
{name: 'Ende', type: 'living', scope: 'individual', iso6393: 'end'},
{name: 'Forest Enets', type: 'living', scope: 'individual', iso6393: 'enf'},
{
name: 'English',
type: 'living',
scope: 'individual',
iso6393: 'eng',
iso6392B: 'eng',
iso6392T: 'eng',
iso6391: 'en'
},
{name: 'Tundra Enets', type: 'living', scope: 'individual', iso6393: 'enh'},
{name: 'Enlhet', type: 'living', scope: 'individual', iso6393: 'enl'},
{
name: 'Middle English (1100-1500)',
type: 'historical',
scope: 'individual',
iso6393: 'enm',
iso6392B: 'enm',
iso6392T: 'enm'
},
{name: 'Engenni', type: 'living', scope: 'individual', iso6393: 'enn'},
{name: 'Enggano', type: 'living', scope: 'individual', iso6393: 'eno'},
{name: 'Enga', type: 'living', scope: 'individual', iso6393: 'enq'}
]API
iso6393
Array.<Language> — List of Languages.
Language
Object with the following properties:
name(string) — Language nametype(string) — Language type (Type)scope(string) — Language scope (Scope)iso6393(string) — ISO 639-3 codeiso6392B(string?) — Bibliographic ISO 639-2 codeiso6392T(string?) — Terminologic ISO 639-2 codeiso6391(string?) — ISO 639-1 code
Type
string, one of the following:
'living'— still spoken languages (example:nhiforZacatlán-Ahuacatlán-Tepetzintla Nahuatl)'historical'— distinct from any modern languages that are descended from it (example:ofsforOld Frisian)'extinct'— language that went extinct in recent time (example:rbpforBarababaraba)'ancient'— language that went extinct in ancient times (example:gotforGothic)'constructed'— artificial languages, but not programming languages (example:epoforEsperanto)'special'— non-language codes (example:undforUndetermined)
Scope
string, one of the following:
'individual'— normal, single language (example:engforEnglish)'macrolanguage'— one-to-many grouping of languages, because older ISO 639s included them (example:araforArabic)'special'— non-language codes (example:undforUndetermined).