Full BCP 47 language subtag data from the official IANA repository, in JSON format with multiple indices.
Want to see pretty graphs? Log in now!
npm install language-subtag-registry
|15||downloads in the last day|
|96||downloads in the last week|
|218||downloads in the last month|
|Last Published By|
|Version||0.3.4 last updated 11 days ago|
|Keywords||iana, bcp47, subtags, rfc5646, language|
IANA Language Tags
lib/data/ for all the JSON files available. The
registry.json file contains all records in a flat array and
meta.json contains its metadata. There's a separate JSON file for each 'scope' (e.g.
macrolanguage.json) and 'type' (e.g.
language.json). These files contain JSON objects keyed by tag or subtag and with the index integer for the corresponding entry in
registry.json as a value. This makes lookups fast.
This project will be updated as the registry changes. Non-breaking updates will result in the patch version number being bumped.
make update to force an update from the latest official IANA-hosted version. The registry file format is converted to JSON automatically and the files in
data/ are updated.
If there are changes, please make a pull request.
Credits and collaboration
The JSON database is licensed an Open Data Commons Attribution License (ODC-BY).
Comments, feedback and suggestions are welcome. Please feel free to raise an issue or pull request. Enjoy.