Skip to main content

Adds i18n markup to jinja2 and handlebars templates.

Project description


A tool to automatically add i18n markup to jinja2 and handlebars
templates. It may also work for django, though this is not tested.

This is part of a process to make a non-i18n-aware jinja2 or
handlebars file i18n-aware. i18n-ness support is mostly a matter of
marking natural-language text in the file that needs to be translated.
While some complicated natural language constructs (like plurals)
require a bit more work, the simple case is very simple: replace

<p>Hello <b>world</b></p>


<p>{{ _("Hello <b>world</b>") }}</p>

This script helps with that process.

i18nize_templates <file> ...
i18nize_templates [--handlebars] < <infile> > <outfile>

Project details

Download files

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

Files for i18nize_templates, version 0.2
Filename, size & hash File type Python version Upload date
i18nize_templates-0.2-py2-none-any.whl (24.9 kB) View hashes Wheel py2
i18nize_templates-0.2.tar.gz (31.9 kB) View hashes Source None

Supported by

Elastic Elastic Search Pingdom Pingdom Monitoring Google Google BigQuery Sentry Sentry Error logging AWS AWS Cloud computing DataDog DataDog Monitoring Fastly Fastly CDN SignalFx SignalFx Supporter DigiCert DigiCert EV certificate StatusPage StatusPage Status page