As far as I understand, there are three steps to adding translations:
- collect phrases (
bin/magento i18n:collect-phrases ...) to a CSV file that has two columns, e.g.,
- replace the second column with the desired translations (e.g., for German
- rename the file to e.g., de_DE.csv and put it in the i18n folder of my theme or module
Now, if my module/theme gets updated and new strings are added that I would like to translate, how do I proceed? If I repeat step 1. and collect phrases into the same file, my existing translations will be overwritten.
For WordPress, Poedit allows me to add new translations from a POT file without overwriting previous ones. For Magento, I am not aware of such a tool.
I could of course write a parser that only extracts strings without a translation and adds those to de_DE.csv, but that seems a bit cumbersome - is there a best practices on how to update translation files?
I am aware of question 148062, but I don't find the answer particulary helpful.