hatch-django-locales
This package provides a hatchling plugin (build hook) for Django projects that automatically compiles locale files when building the package.
Usage
In your projects pyproject.toml, make sure you are using the hatchling build system
and add the following:
[tool.hatch.build.hooks.django-locales]
dependencies = ["hatch-django-locales>=0.1.5", "django"]
search-directories = ["src"]
The search-directories option should be a list of directories to glob
for locale directories and is your project root by default.
Make sure that the .mo files are actually included in the wheels produced
by your build process.
Metadata
Release files for hatch-django-locales 0.1.5
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_django_locales-0.1.5.tar.gz | 2.3 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| hatch_django_locales-0.1.5-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 5.7 kB
Release files / hatch_django_locales-0.1.5.tar.gz
| Download URL | hatch_django_locales-0.1.5.tar.gz |
|---|---|
| Size | 2.3 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
da19e28c123ae238b4591556362e90b85dea60cff781165fd421d19f4f3a3b01
|
|
BLAKE2b-256 checksum How to use checksums |
8715f2d1c1298ed525b9c2ad8eb03bd46d2621ee38b8b2ff3af4290d5d7c6a08
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|
Release files / hatch_django_locales-0.1.5-py3-none-any.whl
| Download URL | hatch_django_locales-0.1.5-py3-none-any.whl |
|---|---|
| Size | 3.3 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
51fbfea99d501fde2e0213a060646caf41293138aa5673ca16d7d9e42fbc603b
|
|
BLAKE2b-256 checksum How to use checksums |
ec88fe2f90c989f3894d586a7594f1a5d1f34d5cb0c778a6f884ea327a83a333
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
No |
| Uploaded via |
uv/0.10.2 {"installer":{"name":"uv","version":"0.10.2","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Arch Linux","version":null,"id":null,"libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":null}
|