@wikimedia/language-data

Language data and utilities.


Keywords
cldr, cldr-data, internationalization, localization, l10n, autonym, ltr, rtl
License
CNRI-Python-GPL-Compatible
Install
npm install @wikimedia/language-data@1.1.7

Documentation

Language data and utilities

npm node-build php-build

This library contains language related data, and utility libraries written in PHP and Node.js to interact with that data.

The language related data comprises of the following,

  1. The script in which a language is written
  2. The script code
  3. The language code
  4. The regions in which the language is spoken
  5. The autonym - language name written in its own script
  6. The directionality of the text

This data is populated from the current version of CLDR supplemental data and various other sources.

Documentation

  1. Full documentation
  2. Using the PHP library
  3. Using the Node.js library
  4. Adding Languages

Release schedule

Similar to MLEB, this library will have a quarterly release schedule, and will be released along with MLEB. Intermediate releases will be made for important bug fixes.

Changelog

The full changelog is available in CHANGELOG.md.