Skip to main content

Langrinder

Flexible internationalization (i18n) engine based on Mako templates

GitHub License Code Style Python versions Project version

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!

Release files for langrinder 3.2.1

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

Source distribution (sdist)

Source distribution for langrinder 3.2.1
File Size Uploaded
langrinder-3.2.1.tar.gz 10.6 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for langrinder 3.2.1
File Interpreter ABI Platform
langrinder-3.2.1-py3-none-any.whl Python 3 none any Details

Total release size: 25.1 kB

Release files / langrinder-3.2.1.tar.gz

Download URL langrinder-3.2.1.tar.gz
Size 10.6 kB
Tags Source
SHA-256 checksum
How to use checksums
3501f73e6c47215bcbd7c44588c07cd1dad3c2b1941352339c2ac1f28de491fa
BLAKE2b-256 checksum
How to use checksums
6a0f076af4dc17504ca61ddfec1bb9e1546b0a515aea30e1a89bf1536c72b2ef
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release files / langrinder-3.2.1-py3-none-any.whl

Download URL langrinder-3.2.1-py3-none-any.whl
Size 14.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1f0b4a45f1d7cd77faa683ea56ee434121141fd350e4764ed31a946cfa55787c
BLAKE2b-256 checksum
How to use checksums
1185576251d074ba09bc27b35d5266936bf80845aafe5a930b38129728716c94
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.1.0 CPython/3.13.5

Release history Release notifications | RSS feed

This release

3.2.1 This release

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