Description
Symfony version(s) affected: 3.4 to 4.2 at least
Description
When running php ./bin/console debug:translation --all fr
, translation from all bundles are read (like FrameworkBundle, TwigBundle... ) but translations from components likes validators or security are not:
- vendor/symfony/form/Resources/translations/validators.fr.xlf
- vendor/symfony/security-core/Resources/translations/security.fr.xlf
- vendor/symfony/validator/Resources/translations/validators.fr.xlf
I think this is not the behavior I expected, it could be improved.
The help message on the "all" option tells:
You can display information about translations in all registered bundles in a specific locale:
So it work as expected, but someone using those components will have hidden translation in his application, and no way to read them / debug them.
How to reproduce
php ./bin/console debug:translation --all fr
# No message from the "validators" catalog is listed
Possible Solution
Symfony should use the same path resolution for the debug command and the catalog loading in Translator. The Translator is capable of reading translations from the components, so this command should act the same way.
Additional context
Happy holidays 🎄 🎅