A JavaScript library for validating and working with BCP 47 language tags, based on BCP 47 (RFC 5646) and the latest IANA language subtag registry. It provides functions to check tag validity, look up language subtags, search subtags and tags by description, and format tags according to common conventions (case rules).
Project status
- The source (mattcg/language-tags) looks largely in maintenance mode, with the last upstream push dated 2025-07-07 and the most recent tagged update being v1.0.5 on 2016-01-12 (as of 2026-06-11, that is years ago).
- Apparent update cadence is quiet, with infrequent major version updates concentrated in 2013-2016, and no evidence of ongoing regular updates after 2016.
AI summary generated 2026-06-11
Recent updates
v1.0.5
2016-01-12Release v1.0.5 makes changes to how subtags are returned for redundant language tags, and adds convenience APIs to access specific subtag types (language, region, script). It also adjusts the sorting logic used by `tags.search` and updates test tooling, including CI Node versions.
BreakingFeaturesv1.0.4
2016-01-11Release v1.0.4 makes notable changes to the library's tag search behavior, including how queries are interpreted and how results are ordered. It also updates test expectations for specific language tag metadata, implying changes to underlying tag data/definitions. No release notes were provided to document these changes.
v1.0.3
2015-07-09Release v1.0.3 was published on 2015-07-09, but no release notes were provided by the publisher. Because the release notes content is missing, there is no documented information about new features, bug fixes, breaking changes, or security updates.
v1.0.2
2014-03-24Release v1.0.2 contains no publisher-provided release notes. The actual diff changes build and test tooling (coverage generation and test command options) and updates the runtime dependency on language-subtag-registry to a newer semver range.
Breakingv1.0.0
2013-09-29v1.0.0 introduces an external dependency, language-subtag-registry, as the source of all BCP 47 JSON data instead of bundling the IANA-derived datasets in this repository. The release notes field is empty, so the substantial refactor (removing local data and importer tooling) is effectively undocumented.
v0.1.0
2013-09-28v0.1.0 appears to be a major data update and internal refactor compared to v0.0.3, with a large number of JSON dataset changes (tens of thousands of line edits) and new unit tests. The release notes section is empty, so developers effectively have no documented description of what changed behaviorally.
v0.0.3
2013-05-22Release v0.0.3 has no provided release notes. The code diff shows the package version bump plus regeneration/re-serialization of the bundled language-tag JSON data files, primarily changing JSON formatting (whitespace and indentation) rather than values.
v0.0.2
2013-05-22Release v0.0.2 updates build/cleanup behavior and adjusts the importer pipeline trigger used before running the conversion step. No release notes were provided, so behavior changes must be inferred from the code diff.
Breakingv0.0.1
2013-05-22Release v0.0.1 was published on 2013-05-22. No release notes were provided by the publisher, so there is no documented information about features, fixes, or compatibility changes to assess.