Language definitions used by Weblate https://weblate.org/
Find a file
Michal Čihař d6e573e437 fix: use Sorani / Kurmanji to name Kurdish variants
This seems to better fit for users expecting to find Sorani / Kurmanji directly.

Fixes #1657
2026-04-13 14:06:09 +02:00
.github chore(deps): update actions/upload-artifact action to v7.0.1 (#2378) 2026-04-10 18:12:29 +00:00
.well-known chore: add funding meta data 2025-06-24 08:26:36 +02:00
languages-po feat: incorporate population data from wikidata 2026-04-13 13:06:51 +02:00
LICENSES Use REUSE 3.0 for license data 2023-01-13 09:57:28 +01:00
modules chore(deps): update dependency modules/qttools to v6.11.0 (#2343) 2026-03-23 10:15:30 +00:00
scripts feat: incorporate population data from wikidata 2026-04-13 13:06:51 +02:00
weblate_language_data fix: use Sorani / Kurmanji to name Kurdish variants 2026-04-13 14:06:09 +02:00
.editorconfig chore: Sync with WeblateOrg/meta 2026-03-16 11:08:28 +01:00
.gitignore feat: cover all Debian supported locales 2026-04-13 11:48:29 +02:00
.gitmodules chore(deps): update dependency modules/qttools to v6.11.0 (#2343) 2026-03-23 10:15:30 +00:00
.markdownlint.yml chore: Sync with WeblateOrg/meta 2025-11-20 15:24:58 +01:00
.pre-commit-config.yaml chore(deps): update pre-commit hook zizmorcore/zizmor-pre-commit to v1.24.0 (#2382) 2026-04-13 09:12:27 +00:00
.weblate Add Weblate configuration 2020-09-29 12:46:36 +02:00
.yamllint.yml Sync with WeblateOrg/meta 2023-01-10 11:26:18 +01:00
aliases.csv feat: add oc_aranes alias for oc_ES 2026-02-16 12:56:53 +01:00
case-insensitive.csv chore: update generated files 2026-04-13 12:16:19 +02:00
cldr.csv fix: use Sorani / Kurmanji to name Kurdish variants 2026-04-13 14:06:09 +02:00
default_countries.csv feat: cover all Debian supported locales 2026-04-13 11:48:29 +02:00
extraplurals.csv fix: wrong plural counts for some numbers 2024-11-01 16:05:23 +01:00
gettext.csv chore: Updates from submodules 2022-09-02 08:04:53 +02:00
l10n-guide.csv chore: Add header to the CSV files 2022-07-14 15:00:16 +02:00
languages.csv fix: use Sorani / Kurmanji to name Kurdish variants 2026-04-13 14:06:09 +02:00
LICENSE Sync with WeblateOrg/meta 2023-01-07 13:15:15 +01:00
Makefile feat: incorporate population data from wikidata 2026-04-13 13:06:51 +02:00
MANIFEST.in fix: remove not needed trailing slash 2025-04-11 10:21:03 +02:00
PLURALS_DIFF.md fix: use Sorani / Kurmanji to name Kurdish variants 2026-04-13 14:06:09 +02:00
population-fallback.csv feat: incorporate population data from wikidata 2026-04-13 13:06:51 +02:00
population.csv feat: incorporate population data from wikidata 2026-04-13 13:06:51 +02:00
pyproject.toml chore(deps): update dependency mypy to v1.20.1 (#2381) 2026-04-13 05:09:58 +00:00
qt.csv fix: remove duplicate plural definitions for Qt 2024-10-15 15:12:37 +02:00
README.rst feat: incorporate population data from wikidata 2026-04-13 13:06:51 +02:00
REUSE.toml chore: add funding meta data 2025-06-24 08:26:36 +02:00
rtl.csv fix: improve RTL data 2026-03-31 13:21:18 +02:00
SECURITY.md chore: Sync with WeblateOrg/meta 2025-04-30 09:41:19 +02:00
setup.py chore: use more of ruff 2025-02-05 14:40:41 +01:00
translate.csv fix(deps): update dependency translate-toolkit to v3.17.0 (#2106) 2025-11-26 16:11:17 +00:00

.. image:: https://s.weblate.org/cdn/Logo-Darktext-borders.png
   :alt: Weblate
   :target: https://weblate.org/
   :height: 80px

**Weblate is libre software web-based continuous localization system,
used by over 2500 libre projects and companies in more than 165 countries.**

Language definitions used by `Weblate`_ and free to use by others.

.. image:: https://img.shields.io/badge/website-weblate.org-blue.svg
    :alt: Website
    :target: https://weblate.org/

.. image:: https://hosted.weblate.org/widgets/weblate/-/svg-badge.svg
    :alt: Translation status
    :target: https://hosted.weblate.org/engage/weblate/?utm_source=widget

.. image:: https://bestpractices.coreinfrastructure.org/projects/552/badge
    :alt: CII Best Practices
    :target: https://bestpractices.coreinfrastructure.org/projects/552

.. image:: https://img.shields.io/pypi/v/weblate-language-data.svg
    :target: https://pypi.org/project/weblate-language-data/
    :alt: PyPI package

.. image:: https://readthedocs.org/projects/weblate/badge/
    :alt: Documentation
    :target: https://docs.weblate.org/

Usage
=====

The Python module can be installed from the PyPI:

.. code-block:: sh

    pip install weblate-language-data

It contains several modules containing language definitions and Gettext
translations for them (in a way that they would be discovered by Django when
used as an Django application).

CSV Files
=========

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

languages.csv
-------------

* Combined from several sources, plurals should match CLDR when available
* Used by `Weblate`_ for language definitions
* Manually edited

aliases.csv
-----------

* Language aliases to map non standard or legacy locales to ones in `languages.csv`
* Manually edited

default_countries.csv
---------------------

* List of default country specific locales
* Used to map them to ones in `languages.csv`
* Manually edited

extraplurals.csv
----------------

* Additional plural variants for some languages
* Usually used in Gettext
* Manually edited

cldr.csv
--------

* Based purely on the CLDR data
* Generated using export-cldr from https://github.com/mlocati/cldr-to-gettext-plural-rules

gettext.csv
-----------

* Based on Gettext defaults
* Generated using export-gettext

translate.csv
-------------

* Extracted from `translate-toolkit`_
* Generated using export-translate

population.csv
--------------

* 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`

population-fallback.csv
-----------------------

* 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

languages-po
------------

* Directory containing PO files with language names translations
* Extracted from CLDR data

.. _Weblate: https://weblate.org/
.. _translate-toolkit: https://toolkit.translatehouse.org/
.. _l10n guide: https://docs.translatehouse.org/projects/localization-guide/en/latest/

Contributing
============

Contributions are welcome! See `documentation <https://docs.weblate.org/en/latest/contributing/modules.html>`__ for more information.