
Description
Symfony version(s) affected
5.4.21
Description
We have a bundle with multiple translations in Resources/translations/
it looks like the bundle translation is loaded xBundle.nl.yaml
but the validators.nl.yaml
isn't loaded.
Is that because https://github.com/symfony/framework-bundle/blob/6.2/CHANGELOG.md#500 Removed support to load translation resources from the legacy directories src/Resources/translations/ and src/Resources/<BundleName>/translations/
? (when i include the translation path under translator
it works correctly.)
Note in the project i also have a validators.nl.yaml
but its in a sub folder /translations/validators.nl.yaml
Question:
https://symfony.com/doc/current/translation.html#translation-resource-file-names-and-locations
the translations/ directory (at the root of the project);
the translations/ directory inside of any bundle (and also their Resources/translations/ directory, which is no longer recommended for bundles).
Isn't it always recommended to place translation in the translations/
directory?
How to reproduce
Have a bundle with at least 2 translations in Resources/translations/
and use it in a project and see that a translation from validators.nl.yaml
isn't loaded.
Possible Solution
No response
Additional Context
No response