8000
We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f67a1e0 + 121c29e commit 4525397Copy full SHA for 4525397
book/translation.rst
@@ -796,6 +796,18 @@ texts* and complex expressions:
796
{# but static strings are never escaped #}
797
{{ '<h3>foo</h3>'|trans }}
798
799
+.. versionadded:: 2.1
800
+
801
+ You can now set translation domain for an entire twig template with one
802
+ single tag:
803
804
+ .. code-block:: jinja
805
806
+ {% trans_default_domain "app" %}
807
808
+ Note that this is only influencing the current template, not the included
809
+ ones in order to avoid side effects.
810
811
PHP Templates
812
~~~~~~~~~~~~~
813
0 commit comments