Fixed i18n extension test (https://github.com/alexandrevicenzi/Flex/issues/74)
This commit is contained in:
parent
51e7808bde
commit
389b3f42fa
1 changed files with 1 additions and 2 deletions
|
@ -1,5 +1,4 @@
|
|||
{% if 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %}
|
||||
{% macro _(msg) %}
|
||||
{% if JINJA_ENVIRONMENT is defined and 'jinja2.ext.i18n' not in JINJA_ENVIRONMENT['extensions'] or JINJA_ENVIRONMENT is not defined and 'jinja2.ext.i18n' not in JINJA_EXTENSIONS %} {% macro _(msg) %}
|
||||
{{ msg % kwargs }}
|
||||
{% endmacro %}
|
||||
{% endif %}
|
||||
|
|
Loading…
Reference in a new issue