I regularly develop import/export commands that deal with multiple languages. I always use Extbase repositories and models, so I don’t have to connect records manually or do other sketchy things.
I have my workarounds with setRespectSysLanguage to false and add the sysLanguageUid manually to every query, but I must have my customized methods that return the record in the language I need.
Isn’t there a way in TYPO3 to set a specific language in a Symfony command, maybe via the language aspect, globally so that I don’t have to have specialized methods for everything and I can switch to a different language, other than the default language, and fetch records from the repository in this language?
Pnoreck is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.