Language definitions used by Weblate and free to use by others.
Maintained by Weblate — a privacy-respecting localization platform built on open-source foundations.
The Python module can be installed from PyPI:
pip install weblate-language-dataIt contains several modules containing language definitions and Gettext translations for them (in a way that they would be discovered by Django when used as a Django application).
The repository also contains CSV files which are used to generate the Python code and can be used independently.
- Semicolon delimited files
- Contains language code, name, number of plurals and plural equation
- Combined from several sources, plurals should match CLDR when available
- Used by Weblate for language definitions
- Manually edited
- Language aliases to map non standard or legacy locales to ones in languages.csv
- Manually edited
- List of default country specific locales
- Used to map them to ones in languages.csv
- Manually edited
- Additional plural variants for some languages
- Usually used in Gettext
- Manually edited
- Based purely on the CLDR data
- Generated using export-cldr from https://github.com/mlocati/cldr-to-gettext-plural-rules
- Based on Gettext defaults
- Generated using export-gettext
- Extracted from translate-toolkit
- Generated using export-translate
- Based on CLDR territory population data
- Supplemented by population-fallback.csv for base language codes missing or zero in CLDR
- Generated using scripts/export-cldr-population.py
- Reviewed fallback speaker counts for language codes missing or zero in CLDR
- Currently sourced from Wikidata speaker-count statements (CC0)
- Includes source URLs and dates to keep the imported values auditable
- Directory containing PO files with language names translations
- Extracted from CLDR data
Contributions are welcome! See documentation for more information.