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 extractor you wrote misses lots of features of the Symfony Twig bridge:
it does not support the trans_choice tag
it does not support the trans_default_domain tag
Symfony already maintains a Twig extractor since years, which covers all features listed above, and is kept uptodate for changes in the features.
You should use it inside your extractor instead of duplicating the work.
The text was updated successfully, but these errors were encountered:
FrameworkBundle is not necessary for the Twig extractors AFAIK.
The TwigBridge is necessary because it is the one implementing the translation tags. So if the bridge is not installed, there is nothing to extract anyway (and if there is something, you cannot parse the template). So there is no new dependency when using it.
You could make it an optional requirement in your composer.json, and register the extractor only when it is available. If the bridge is not there, you know there is nothing to extract anyway.
The extractor you wrote misses lots of features of the Symfony Twig bridge:
trans_choice
tagtrans_default_domain
tagSymfony already maintains a Twig extractor since years, which covers all features listed above, and is kept uptodate for changes in the features.
You should use it inside your extractor instead of duplicating the work.
The text was updated successfully, but these errors were encountered: