Closed SVillette closed 6 months ago
In a Twig template, I can't use named arguments in |trans function because navigation and autocompletion is not supported.
|trans
{{ 'app.status.accepted'|trans(domain = 'resources') }}
In my opinion, it could be a nice addition as I think the above code is better than the following code (which is the only way to have navigation and autocompletion with translations).
{{ 'app.status.accepted'|trans({}, 'resources') }}
Do you think it could be possible to add support of Twig named arguments in the plugin ? Thank you
Thank you @Haehnchen, it works like a charm
Description
In a Twig template, I can't use named arguments in
|trans
function because navigation and autocompletion is not supported.In my opinion, it could be a nice addition as I think the above code is better than the following code (which is the only way to have navigation and autocompletion with translations).
Do you think it could be possible to add support of Twig named arguments in the plugin ? Thank you