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
The recommendation is to use the trans filter in symfony/twig-bridge instead
What is the expected output? What do you see instead?
The new package has a different set-up for loading the translation files, as documented in https://symfony.com/doc/current/translation.html
Also the often used {% trans ID_STRING %} syntax does not work with the extension in symfony/twig-bridge
It shoud be refactored to {{ ID_STRING | trans }} or {% trans %}ID_STRING{% endtrans %}
All three are valid syntaxes in the current I18nExtension set-up
The text was updated successfully, but these errors were encountered:
The symfony/translation (and symfony/twig-bridge) are up to date and maintained packages, but we have to use 6.0.x in order to keep PHP 8.0.2 compability.
This is an upgrade request for getting rid of the abandoned
twig/extensions
package.What steps will reproduce the problem?
I18nExtension
for creating the translation strings from .mo filestrans
filter insymfony/twig-bridge
insteadWhat is the expected output? What do you see instead?
The new package has a different set-up for loading the translation files, as documented in https://symfony.com/doc/current/translation.html
Also the often used
{% trans ID_STRING %}
syntax does not work with the extension in symfony/twig-bridge{{ ID_STRING | trans }}
or{% trans %}ID_STRING{% endtrans %}
I18nExtension
set-upThe text was updated successfully, but these errors were encountered: