Adds i18n markup to jinja2 and handlebars templates.
Project description
i18nize-templates
=================
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>
with
<p>{{ _("Hello <b>world</b>") }}</p>
This script helps with that process.
Use
---
i18nize_templates <file> ...
OR
i18nize_templates [--handlebars] < <infile> > <outfile>
=================
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>
with
<p>{{ _("Hello <b>world</b>") }}</p>
This script helps with that process.
Use
---
i18nize_templates <file> ...
OR
i18nize_templates [--handlebars] < <infile> > <outfile>
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
i18nize_templates-0.2.tar.gz
(31.9 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 i18nize_templates-0.2.tar.gz.
File metadata
- Download URL: i18nize_templates-0.2.tar.gz
- Upload date:
- Size: 31.9 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
918d94d41c1ebdcf4fdbcd974182f9570a0e5145f2d84c211c8e4eeffacf5aac
|
|
| MD5 |
0321a93ef6e98668fd6fac8445ea3da1
|
|
| BLAKE2b-256 |
7169abdbd7d1299530a605f0c59b223eec414db0dc52aaffb810b9e132acc29c
|
File details
Details for the file i18nize_templates-0.2-py2-none-any.whl.
File metadata
- Download URL: i18nize_templates-0.2-py2-none-any.whl
- Upload date:
- Size: 24.9 kB
- Tags: Python 2
- Uploaded using Trusted Publishing? No
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
7e64ef5f7f479baf7f3a9a20e829925b89b43ef436ce06096b673a9925d309ba
|
|
| MD5 |
28c0a97fb2cbc6b970151b776d683cf4
|
|
| BLAKE2b-256 |
acf81f9e4152ef7bc6462e34cd96ed75e51a7c7cb186c55e259adaae0714ba44
|