Skip to content

Instantly share code, notes, and snippets.

@shirou
Created December 6, 2010 04:30
Show Gist options
  • Save shirou/729865 to your computer and use it in GitHub Desktop.
Save shirou/729865 to your computer and use it in GitHub Desktop.
How to use i18n in the jinja2
from jinja2 import Environment
env = Environment(extensions=['jinja2.ext.i18n'])
template = env.get_template('foo.html')
template.render()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment