Flexible internationalization engine based on Mako templates
Project description
Why Langrinder?
- Based on mako templates. Maximum flexibility and comfort
- Flexible compilers & parsers (default: JSON compiler)
- Variety of built-in functions and integrations
- Telegrinder integration
Installation
pip install langrinder
pip install langrinder[telegrinder] # Just install latest telegrinder
pip install langrinder[cli] # Recommended
Usage
- Create locales files (
locales/<locale>/<smth>.mako)locales/en/main.mako:@start: Hello from ${html.bold('Langrinder')}!
locales/ru/main.mako:@start: Привет от ${html.bold('Langrinder')}!
- Compile locales
langrinder locales/ locales/compiled.json
- Enjoy! See our main example and bot example!
License
Langrinder licensed under MIT license. Free and open-source!
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
langrinder-3.2.1.tar.gz
(10.6 kB
view details)
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file langrinder-3.2.1.tar.gz.
File metadata
- Download URL: langrinder-3.2.1.tar.gz
- Upload date:
- Size: 10.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
3501f73e6c47215bcbd7c44588c07cd1dad3c2b1941352339c2ac1f28de491fa
|
|
| MD5 |
44b586c95b230fdf680485cf3cf20408
|
|
| BLAKE2b-256 |
6a0f076af4dc17504ca61ddfec1bb9e1546b0a515aea30e1a89bf1536c72b2ef
|
File details
Details for the file langrinder-3.2.1-py3-none-any.whl.
File metadata
- Download URL: langrinder-3.2.1-py3-none-any.whl
- Upload date:
- Size: 14.5 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: twine/6.1.0 CPython/3.13.5
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
1f0b4a45f1d7cd77faa683ea56ee434121141fd350e4764ed31a946cfa55787c
|
|
| MD5 |
350f04d368f9edf5ae40a6a92a554c9f
|
|
| BLAKE2b-256 |
1185576251d074ba09bc27b35d5266936bf80845aafe5a930b38129728716c94
|