How to use translations in twig templates?
AndreyChursin opened this issue · 2 comments
AndreyChursin commented
I need to show the text in the footer of the template, but I don't understand how to do it.
May be there any function like:
{{ message('sometitle') }}
witch takes the string from the "translations/messages.??.xlf" file and in current locale?
bobdenotter commented
There's {{ l('foo') }}
and {{ __('message') }}
AndreyChursin commented
I found {{ message|trans }}
, thanks!