Skip to main content

A hatch build-hook for compiling babel .po files to .mo files.

Project description

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 = "pytr/locale"
include_po = false

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.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

hatch_babel-0.1.1.tar.gz (2.7 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

hatch_babel-0.1.1-py3-none-any.whl (2.7 kB view details)

Uploaded Python 3

File details

Details for the file hatch_babel-0.1.1.tar.gz.

File metadata

  • Download URL: hatch_babel-0.1.1.tar.gz
  • Upload date:
  • Size: 2.7 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hatch_babel-0.1.1.tar.gz
Algorithm Hash digest
SHA256 84709eaa052802c9f846aa4be91cb6bd57e173d70757d799bfdc0aafcac16212
MD5 f6e704bfa2bf5cd5514466c93b046858
BLAKE2b-256 0a0ba65cbeb5dc4286dc417e2cbc7a4a0d9c6a0e0f00a8794b287d4151e2c58c

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_babel-0.1.1.tar.gz:

Publisher: python.yaml on NiklasRosenstein/hatch-babel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file hatch_babel-0.1.1-py3-none-any.whl.

File metadata

  • Download URL: hatch_babel-0.1.1-py3-none-any.whl
  • Upload date:
  • Size: 2.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.0.1 CPython/3.12.8

File hashes

Hashes for hatch_babel-0.1.1-py3-none-any.whl
Algorithm Hash digest
SHA256 3e0a90060b442208eb65e6848663a5a569b7d610cba9b2a4d747bd0dd2d4cc02
MD5 219420ebc0f742529e793723d5c9a159
BLAKE2b-256 7ef693f64bccd534b35541401232b19388e23db3b768da6a1be1986089a0d19e

See more details on using hashes here.

Provenance

The following attestation bundles were made for hatch_babel-0.1.1-py3-none-any.whl:

Publisher: python.yaml on NiklasRosenstein/hatch-babel

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page