Package Exports
- cjs-iso-639
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 (cjs-iso-639) 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 language codes
This library provides ISO language codes with English and local names.
| Code | Description |
|---|---|
| 1 | 2 characters, one per language or ISO 639 macrolanguage |
| 2T | 3 characters, one per language |
| 2B | 3 characters, mostly the same as 639-2T, but with some codes derived from English names rather than native names of languages |
Installation
npm install cjs-iso-639Usage
Add to the scope:
var codes = require('cjs-iso-639');Use:
console.log(codes['1']['fr']);
console.log(codes['2T']['fra']);
// both give ['French', 'français']Contribution
See details.
License
cjs-iso-639 is released under the MIT License.