I am using LexikTranslationBundle for translate contents in my project. I have been reading carefully the documentation for the bundle and I have setup my project as follow:
# LexikTranslationBundle Configuration
lexik_translation:
fallback_locale: [en]
managed_locales: [en, es]
storage:
type: mongodb
object_manager: default
Docs says:
The bundle overrides the translator service and provides a DatabaseLoader. Database translations content is loaded last so it overrides content from xliff, yml and php translations files. You can also export translations from the database into files in case you need to get translations files with the same content as the database.
Maybe this mean I depends on .xliff
files and can't load translations directly from DB which sucks.
As a side note I have already loaded all the translations I had in .xliff
files into the DB so I've removed the .xliff
files from the project.
I want to manage the translations directly from DB and get rid of the files and I've tried but it doesn't work.
Did I miss something here? How do I load the translations directly from DB?