Twig-extensions. The i18n Extension

https://github.com/fabpot/Twig-extensions/blob/master/doc/i18n.rst

{% trans "Hello World!" %}

{% trans string_var %}

{% trans %} Hello World! {% endtrans %}

{% trans %} Hello {{ name }}! {% endtrans %}