ongr-io / TranslationsBundle

Translations GUI for translating Symfony static strings
MIT License
5 stars 13 forks source link

[feature-clean-old] add option to clean unused translations #99

Closed martinohmann closed 7 years ago

martinohmann commented 7 years ago

This PR introduces the --clean flag for the ongr:translation:import command. Running the ongr:translation:import command with the --clean flag will cause the removal of all translation keys from ES that are not present in any translation file(s) configured in the ongr.translations config anymore.

This optional flag should be added to the command to be able to cleanup unneeded translations. Currently ongr:es:index:{drop,create} is part of our workflow, which is annoying and could be resolved by this change. Please review.

saimaz commented 7 years ago

Very nice @martinohmann . Thank you.