Set domain translation for each branch

I have some branches containing text that needs to be translated.

I am currently putting this suggestion on every thread.

{% trans_default_domain 'AcmeTopBundle' %}

      

However, this is a bit troubling.

Is there a good way to set the default domain for each branch in one place?

+3
php symfony twig


source to share


No one has answered this question yet

See similar questions:

0
Set default translation domain based on parameter in Symfony and Twig

or similar:

191
Twig: in_array or similar possible inside an if statement?
139
How are var_dump variables in twig templates?
55
How to include CSS file in Symfony 2 and Twig?
33
How to handle translation in twig file using variables?
3
Get current translation domain in Twig template
1
Symfony2 transfers without domain
0
Twig translates a string containing a parameter
0
Symfony2 + Twig: move shortcut to new branch extension
0
Translating Symfony2 to twig with CsvFileLoader
0
Set default translation domain based on parameter in Symfony and Twig



All Articles
Loading...
X
Show
Funny
Dev
Pics