I am currently working on translating the site into multiple languages. So far i implemented a custom function and modifier that works like this:
html <h1>{{ trans('Shopping') }}</h1>
html <h1>{{ 'Shopping'|trans }}</h1>
But, wrapping all phrases into strings it's hard to read and maintain. Is there any possibility that i could do something like this: ?
html <p>{% trans%}Shopping{% endtrans %} </p>
I though that i could implement a custom compileTrans as extension but didn't helped.
Thanks.