The JoliCode site has posted a tutorial for the Symfony users out there sharing their method for properly managing translations when using the framework.
We already wrote about our Symfony translation workflow some years ago. But since 2015, lots of things have evolved and it was time to update this workflow.
The aim stays the same, keeping app translation simple and fluent for all stakeholders of the project. To achieve this, we had chosen an external tool: Loco, which centralizes translation data, and a piece of code written to synchronize it with Symfony translation files.
The article talks about the two main methods (bundles) used in the Symfony ecosystem to manage translations but they couldn’t connect them with their chosen tool (Loco). The tutorial then shows how they moved to using the php-translation bundle and how to use the Loco UI to manage the keys connected to it. It also covers the use in testing, migrating to production and what’s currently missing from Loco they’d like to see.