Metadata-Version: 2.4
Name: weblate_schemas
Version: 2026.14
Summary: A collection of JSON schemas used by Weblate
Author-email: Michal Čihař <michal@weblate.org>
License-Expression: MIT
Project-URL: Documentation, https://docs.weblate.org/
Project-URL: Download, https://github.com/WeblateOrg/weblate_schemas
Project-URL: Funding, https://weblate.org/donate/
Project-URL: Homepage, https://weblate.org/
Project-URL: Issue Tracker, https://github.com/WeblateOrg/weblate_schemas/issues
Project-URL: Source Code, https://github.com/WeblateOrg/weblate_schemas
Project-URL: Twitter, https://twitter.com/WeblateOrg
Keywords: i18n,l10n,gettext,weblate,translate
Platform: any
Classifier: Development Status :: 5 - Production/Stable
Classifier: Intended Audience :: Developers
Classifier: Operating System :: OS Independent
Classifier: Programming Language :: Python
Classifier: Programming Language :: Python :: 3
Classifier: Programming Language :: Python :: 3 :: Only
Classifier: Programming Language :: Python :: 3.10
Classifier: Programming Language :: Python :: 3.11
Classifier: Programming Language :: Python :: 3.12
Classifier: Programming Language :: Python :: 3.13
Classifier: Programming Language :: Python :: 3.14
Classifier: Programming Language :: Python :: 3.15
Classifier: Topic :: Software Development :: Internationalization
Classifier: Topic :: Software Development :: Localization
Classifier: Topic :: Utilities
Requires-Python: >=3.10
Description-Content-Type: text/x-rst
License-File: LICENSE
Requires-Dist: jsonschema[format]>=4.24.0
Dynamic: license-file

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.
