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
I was investigating for a long time how come some 3rd party translations do not work in my project. Turns out that LexikTranslationBundle somehow interferes with the translation loading by the default symfony installation.
For example, installing KnpTimeBundle works as expected when using it by itself. After introducing LexikTranslationBundle, the translations are no longer loaded.
When LexikTranslationBundle is moved as the first bundle in bundles.php, the translations are loaded correctly again.
Could the issue be that 3rd party bundle translations are being look'd up using wrong paths?
# KnpTimeBundle:
*** Using dir /path/to/symfony/vendor/knplabs/knp-time-bundle/Resources/translations to lookup translation files. ***
No file to import
I was investigating for a long time how come some 3rd party translations do not work in my project. Turns out that LexikTranslationBundle somehow interferes with the translation loading by the default symfony installation.
For example, installing KnpTimeBundle works as expected when using it by itself. After introducing LexikTranslationBundle, the translations are no longer loaded.
When LexikTranslationBundle is moved as the first bundle in bundles.php, the translations are loaded correctly again.
I created a new public repository to demonstrate the issue, please see: https://github.com/nicodemuz/symfony-translation-test
This Symfony Slack thread may also be of interest: https://symfony-devs.slack.com/archives/C3EQ7S3MJ/p1692172721085889
The text was updated successfully, but these errors were encountered: