Language definitions used by Weblate
Find a file
renovate[bot] d06cab300d
Some checks are pending
mypy / mypy (push) Waiting to run
Pre-commit check / pre-commit (push) Waiting to run
Distribution / Build packages (push) Waiting to run
Distribution / Publish release to PyPI (push) Blocked by required conditions
Distribution / Create release on GitHub (push) Blocked by required conditions
Languages / lint (push) Waiting to run
Update generated files / submodule-update (push) Waiting to run
chore(deps): update pre-commit hook zizmorcore/zizmor-pre-commit to v1.14.2 (#2004)
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2025-09-29 15:04:34 +00:00
.github feat: improve updating branches 2025-09-29 11:54:52 +02:00
.well-known chore: add funding meta data 2025-06-24 08:26:36 +02:00
languages-po chore(deps): update modules/cldr-json digest to 0876ec4 (#1326) 2024-04-25 19:48:40 +02:00
LICENSES Use REUSE 3.0 for license data 2023-01-13 09:57:28 +01:00
modules chore(deps): update modules/cldr-json digest to 40751b2 2025-09-02 08:32:16 +02:00
scripts feat: include list of additional decimal tags 2025-07-14 15:31:23 +02:00
weblate_language_data Translated using Weblate (Swahili) 2025-09-24 15:05:51 +02:00
.editorconfig chore: Sync with WeblateOrg/meta 2025-04-08 11:34:05 +02:00
.gitignore chore: ignore uv.lock file 2025-01-15 08:45:43 +01:00
.gitmodules fix: bring back official gettext repo 2025-05-27 15:15:53 +02:00
.markdownlint.yml Sync with WeblateOrg/meta 2023-01-11 09:42:22 +01:00
.pre-commit-config.yaml chore(deps): update pre-commit hook zizmorcore/zizmor-pre-commit to v1.14.2 (#2004) 2025-09-29 15:04:34 +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 alias for zh_SIMPLIFIED 2025-06-16 13:50:07 +02:00
case-insensitive.csv fix: mark Armenian as case insensitive 2025-08-29 15:03:01 +02:00
cldr.csv feat: extend CLDR plurals definitions 2025-04-11 10:01:47 +02:00
default_countries.csv Update default countries 2023-04-18 13:47:03 +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 feat: add Milang language 2025-08-29 07:12:37 +02:00
LICENSE Sync with WeblateOrg/meta 2023-01-07 13:15:15 +01:00
Makefile feat: extend CLDR plurals definitions 2025-04-11 10:01:47 +02:00
MANIFEST.in fix: remove not needed trailing slash 2025-04-11 10:21:03 +02:00
PLURALS_DIFF.md feat: add Milang language 2025-08-29 07:12:37 +02:00
population.csv chore: Updates from submodules 2025-04-01 09:51:45 +02:00
pyproject.toml chore(deps): update dependency mypy to v1.18.2 (#1998) 2025-09-19 02:30:41 +00:00
qt.csv fix: remove duplicate plural definitions for Qt 2024-10-15 15:12:37 +02:00
README.rst typo 2025-02-19 19:15:36 +01:00
REUSE.toml chore: add funding meta data 2025-06-24 08:26:36 +02:00
rtl.csv chore: update generated files 2025-07-12 07:32:49 +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 chore: Add header to the CSV files 2022-07-14 15:00:16 +02: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

l10n-guide.csv
--------------

* Extracted from the `l10n guide`_
* Generated using export-l10n-guide

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.