Skip to main content

hatch-babel

A hatch build-hook to compile Babel *.po files to *.mo files at build time.

Usage

[build-system]
requires = ["hatchling", "hatch-babel"]
build-backend = "hatchling.build"

[tool.hatch.build.hooks.babel]
locale_dir = "mypkg/locale"

Configuration

locale_dir: str

Relative path to the directory that contains the *.po files. Example layout:

mypkg/
    locale/
        de/LC_MESSAGES/messages.po
        en/LC_MESSAGES/messages.po
        fr/LC_MESSAGES/messages.po
        es/LC_MESSAGES/messages.po
pyproject.toml

Your locale_dir would be mypkg/locale.

include_po: bool

Whether to include the *.po files in the build artifact. Default is false.

Metadata

Release files for hatch-babel 0.1.2

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for hatch-babel 0.1.2
File Size Uploaded
hatch_babel-0.1.2.tar.gz 3.4 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for hatch-babel 0.1.2
File Interpreter ABI Platform
hatch_babel-0.1.2-py3-none-any.whl Python 3 none any Details

Total release size: 7.0 kB

Release files / hatch_babel-0.1.2.tar.gz

Download URL hatch_babel-0.1.2.tar.gz
Size 3.4 kB
Tags Source
SHA-256 checksum
How to use checksums
ae6c18dffd460d1a08650949338212880c025a3ff36e95b49b62bbe1dd9f3b87
BLAKE2b-256 checksum
How to use checksums
4ae97ccde937bcf8179d50402c950d0b50734d4deb100469f40c7f515008164a
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 2, 2025.

Transparency log

Release files / hatch_babel-0.1.2-py3-none-any.whl

Download URL hatch_babel-0.1.2-py3-none-any.whl
Size 3.6 kB
Tags Python 3
SHA-256 checksum
How to use checksums
34f6930b0dd65681e1a61be7317d44dbec313cdc0059c5237a6971fbb7eaca6a
BLAKE2b-256 checksum
How to use checksums
23e488fd3db60bed0e2e044fae71bf820216872155ee3dea799ec82f8626a64f
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/6.1.0 CPython/3.12.9

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Mar 2, 2025.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.2 This release

2 release files

0.1.1

2 release files

0.1.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page