Skip to content

Commit

Permalink
chore: clean_translations refactored into separate makefile target (#…
Browse files Browse the repository at this point in the history
…34428)

This will allow external tools like Tutor to easily clean existing
translations without having to use the full pull_translations
makefile target.
  • Loading branch information
OmarIthawi authored Mar 26, 2024
1 parent 53da867 commit 6dab71e
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -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) \
Expand Down

0 comments on commit 6dab71e

Please sign in to comment.