chore: clean_translations refactored into separate makefile target (#34428)

This will allow external tools like Tutor to easily clean existing
translations without having to use the full pull_translations
makefile target.
This commit is contained in:
Omar Al-Ithawi
2024-03-26 22:56:14 +03:00
committed by GitHub
parent 53da867e0b
commit 6dab71e2cb

View File

@@ -53,10 +53,12 @@ pull_xblock_translations: ## pull xblock translations via atlas
python manage.py lms compile_xblock_translations
python manage.py cms compile_xblock_translations
pull_translations: ## pull translations via atlas
# Clean up the existing translations
git clean -fdX conf/locale
clean_translations: ## Remove existing translations to prepare for a fresh pull
git clean -fdX conf/locale # Removes core edx-platform translations but keeps Esperanto (eo) test translations
# Removes the xblocks/plugins and js-compiled translations
rm -rf conf/plugins-locale cms/static/js/i18n/ lms/static/js/i18n/ cms/static/js/xblock.v1-i18n/ lms/static/js/xblock.v1-i18n/
pull_translations: clean_translations ## pull translations via atlas
make pull_xblock_translations
make pull_plugin_translations
atlas pull $(ATLAS_OPTIONS) \