Language data and utilities¶
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,
- The script in which a language is written
- The script code
- The language code
- The regions in which the language is spoken
- The autonym - language name written in its own script
- The directionality of the text
This data is populated from the current version of CLDR supplemental data and various other sources.
Using the PHP library¶
You can add this library to your project by running:
composer install wikimedia/language-data
Using the Node.js library¶
You can add this library to your project by running,
npm i @wikimedia/language-data