You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the trans tag comes from Symfony, I've tried A {% set variable %}{% trans %}value{% endtrans %}{% endset %} B {{ variable }} C and it works as expected. Can you confirm that you're not using the trans tag from Symfony? If yes, then, I would need something I can reproduce.
I "fixed" this in the phpmyadmin/twig-i18n-extension 4.1.1 by adding support for yield if Twig 3.9 is detected, but phpmyadmin/twig-i18n-extension 4.1.0 doesn't work with Twig 3.9 because of that.
After Twig 3.9.0, it's not possible to capture the output of a custom tag (that uses
echo
) and assign it to a variable usingset
.With Twig 3.9.0+, that will print:
Instead of the expected:
It works as expected if the custom tag output is not the only content, for example:
Outputs:
The text was updated successfully, but these errors were encountered: