In jinja templates containing assets block, the strings marked for translation i.e. {{_('to_translate')}} are not extracted by the python setup.up extract_messages command. No error message is displayed.
Solution
A new filter webassets.ext.jinja2.AssetsExtension should be added in the babel.ini file. For example:
Problem
In
jinja
templates containing assets block, the strings marked for translation i.e.{{_('to_translate')}}
are not extracted by thepython setup.up extract_messages
command. No error message is displayed.Solution
A new filter
webassets.ext.jinja2.AssetsExtension
should be added in thebabel.ini
file. For example: