Big update!Introducing GitHub Bot Commands. Learn more
Socket
Log inBook a demo

language-subtag-registry

Package Overview
Dependencies
0
Maintainers
1
Versions
24
Issues
File Explorer

Advanced tools

language-subtag-registry

Full BCP 47 language subtag data from the official IANA repository, in JSON format with multiple indices.

    0.3.22latest

Version published
Maintainers
1
Weekly downloads
8,292,643
decreased by-10.08%

Weekly downloads

Readme

Source

IANA Language Tags

Open Data

IANA's official repository is in record-jar format and is hard to parse. This project provides neatly organized JSON files representing that data.

See 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.

Updates

This project will be updated as the registry changes. Non-breaking updates will result in the patch version number being bumped.

Run 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.

Usage

See language-tags for a Javascript API.

Credits and collaboration

The JSON database is licensed under the Creative Commons Zero v1.0 Universal (CC0-1.0) license.

Comments, feedback and suggestions are welcome. Please feel free to raise an issue or pull request. Enjoy.

Keywords

FAQs

What is language-subtag-registry?

Full BCP 47 language subtag data from the official IANA repository, in JSON format with multiple indices.

Is language-subtag-registry popular?

The npm package language-subtag-registry receives a total of 7,818,007 weekly downloads. As such, language-subtag-registry popularity was classified as popular.

Is language-subtag-registry well maintained?

We found that language-subtag-registry demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago.It has 1 open source maintainer collaborating on the project.

Last updated on 05 Jul 2022

Did you know?

Socket installs a Github app to automatically flag issues on every pull request and report the health of your dependencies. Find out what is inside your node modules and prevent malicious activity before you update the dependencies.

Install Socket
Socket

Product

Subscribe to our newsletter

Get open source security insights delivered straight into your inbox. Be the first to learn about new features and product updates.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc