Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Jinja2 extraction translations failed with assets #117

Open
jma opened this issue Mar 8, 2018 · 0 comments
Open

Jinja2 extraction translations failed with assets #117

jma opened this issue Mar 8, 2018 · 0 comments

Comments

@jma
Copy link

jma commented Mar 8, 2018

When a jinja2 template contains translations and includes assets the babel script translations extraction failed. Add silent=false in the babel.ini file to see the problem. One solution consists to remplace extensions = jinja2.ext.autoescape, jinja2.ext.with_ by extensions = webassets.ext.jinja2.AssetsExtension.

See for example: python-babel/babel#444

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant