I am trying to use message composers with the Twig template engine. Mine navlist.it.ymlstores this message and its placeholder:
users:
label: Gestione utenti %app%
And in my Twig template, I would like to pass the application name as a string. So what I am doing:
<ul class="nav nav-list">
<li class="nav-header">
{{ 'users.label'|trans({'app' : 'Fid'}, 'navlist')|raw }}
</li>
</ul>
Note. I use rawbecause it users.labelmay contain HTML. Conclusion for sure:
<li class="nav-header">Gestione utenti %Fid%</li>
So, the message is translated, but additional ones are added %...%. What am I missing?
source
share