Answer the question
In order to leave comments, you need to log in
How to localize templates in twig?
Hello.
I decided to continue to master twig and faced the following task: there is a certain template in which I need, depending on the selected default language in the system or manually selected by the user, to display text in a certain language.
Let's say the template has the following code:
<div class="page-title">
[некий заголовок]
</div>
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question