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)
| File | Size | Uploaded | |
|---|---|---|---|
| hatch_babel-0.1.2.tar.gz | 3.4 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| 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 logRelease 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