A collection of JSON schemas used by Weblate
Actively maintained. Last release 4 weeks ago, commits in 26 of the last 26 weeks. A safe choice.
$
pip install weblate-schemasREADME as published on PyPI with version 2026.14.
Weblate schemas
===============
.. 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_schemas.svg
:target: https://pypi.org/project/weblate_schemas/
:alt: PyPI package
.. image:: https://img.shields.io/readthedocs/weblate.svg
:alt: Documentation
:target: https://docs.weblate.org/en/latest/schemas.html
This module contains schemas used in Weblate exports, Kotlin SDK build
registration, and CDN manifests. Load them with ``weblate_schemas.load_schema``
or validate data with ``weblate_schemas.validate_schema``.
The schemas use JSON Schema Draft 2020-12. External validators must support this
draft. The validation helper enables format checking, including dates, hostnames,
and IRIs; direct users of a JSON Schema validator must enable format checking
explicitly when they need the same checks.
Reusable definitions are stored in ``$defs``. Consumers inspecting schema
structure or referencing definitions must use ``#/$defs/`` paths. Root schema
identifiers and exported JSON formats are unchanged; legacy nested fragment
identifiers are no longer provided.
``weblate-cdn-manifest.schema.json`` describes manifests from the JavaScript
and translation files CDN add-ons, with a list of files for each language.
``weblate-kotlin-sdk-manifest.schema.json`` describes Kotlin SDK manifests,
with one ARSC artifact per language. Kotlin build registration data uses
``weblate-kotlin-sdk-build.schema.json``.
The Kotlin schemas describe data structure and individual values. Weblate also
checks resource-count limits, resource ID uniqueness and type relationships,
and that artifact URLs contain the corresponding checksum. These checks remain
application-level validation.
.. image:: https://s.weblate.org/cdn/Logo-Darktext-borders.png
:target: https://weblate.org/
:alt: Weblate
:height: 55px
Part of `Weblate <https://weblate.org/>`_ — a privacy-respecting localization platform built on open-source foundations.
Installation
------------
Install using pip:
.. code-block:: sh
pip3 install weblate_schemas
Sources are available at <https://github.com/WeblateOrg/weblate_schemas>.
Contributing
------------
Contributions are welcome! See `documentation <https://docs.weblate.org/en/latest/contributing/modules.html>`__ for more information.