Implement additional identifier/control structure for translations

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(&#039;Shopping&#039;) }}</h1> html <h1>{{ &#039;Shopping&#039;|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.



32.7k

Hi Marian,

You are using Twig or Volt ?

Hey Calin,

I am using Volt .



32.7k

Uf :) Can't help