I'm using Symfony in my backend and render the templates via twig. For translations I'm using following guide, which works fine. https://symfony.com/doc/current/translation.html
works:
{{ "Active Option" | trans({}, 'frontend', app.request.locale) }}
But the problem is, that I have some of the words, which I have to translate, are in angularJS variables. I have multiple .xlf files for the translation and I know the angular.translate. But I don't want to implement it.
{{ '{{' }} item.optionTitle {{ '}}' | trans({}, 'option', app.request.locale) }}
Can anybody explain me how I could translate the value of an angularJS variable with the twig translate?