ranky/media-bundle

Translations not loaded

Closed this issue · 0 comments

Hello, first thanks for this bundle it is great.

I have a problem with loading custom translations, I created a file under {MY_PROJECT}/translations/ranky_media+intl-icu.fr.php, with content copied from vendor/ranky/media-bundle/translations/ranky_media+intl-icu.en.php but it does not get loaded (after running symfony cache:clear).

I dumped the $translations content from vendor/ranky/media-bundle/src/Presentation/Api/ConfigMediaApiController.php and it is empty. If I put the fr translation in ranky vendor translations folder, it gets loaded correctly.

[UPDATE] : I found a solution, when using .yaml file instead of php, translations are loaded correctly