From 6dab71e2cb14312c74e70a1f22e6cf5325ba18f4 Mon Sep 17 00:00:00 2001 From: Omar Al-Ithawi Date: Tue, 26 Mar 2024 22:56:14 +0300 Subject: [PATCH] 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. --- Makefile | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/Makefile b/Makefile index 972422f687eb..7c02dc239f3b 100644 --- a/Makefile +++ b/Makefile @@ -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) \