Why this POC ?
In many Symfony projects, you have to support multiple languages for your users.
In most of the case, you have a default locale in which you work 90% of the time but there comes a time when you have to translate all your translation keys in all the supported languages of your application.
You know the stuggles of this. A deployment is required each time your Product Owner wants to change
Submit or when you have to deploy a hotfix because you thought that
Green was writed
Verre in French.
That's why I developed this POC. It provides a simple UI allowing a competent user to translate the app by himself.
How it works
All the translations are listed in a table filterable by translation domain and/or locale.
For each translation, you can see the key, the text translated in the default locale and an input in which you just have to type the translated message in the chosen locale.
On the blur of the input, the typed translation will be saved in the corresponding file. (e.g. : if you translate the word
Red of the
colors domain in
French, the translated message will be written in your
If the corresponding file does not exists, it will be created in the directory provided by your
If you want to support more locales, just add them to the
supported_locales parameters of your
The default locale is the one chosen in the
Try it !
All the code is available on my GitHub. Just clone it and run
composer install and
Check this link to install Symfony Server.
I hope this will save you some time !