Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
i18n support for the jade template language
branch: master

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
lib/jade-i18n Leverage NPM modules
support Release 0.0.2
tests fixing tests
.gitignore
.gitmodules Added jade to support
.npmignore
Makefile Added jade to support
README.md Make sure to pass the helpers as locals to `jade.render()`
index.js
package.json Fixed typo

README.md

jade-i18n

Adds simple yet very effective i18n support to jade.

Features

  • Support for i18n at Compiler level w/ caching. A piece of the parse tree can be translated (relies on jade-serial to produce JSON-able representations of the parsed nodes)
  • Support for a traditional __() function for complex cases whose markup can't be handled easily by translators.
  • Translation-source agnostic. The translation table can be populated from any source (eg: database, .po/.mo, XLIFF)
  • Evented. Emits a missing event when a certain phrase / node is not translated, therefore it doesn't rely on gettext-style parsing.

Credits

Guillermo Rauch <guillermo@learnboost.com>

Something went wrong with that request. Please try again.