Skip to content

Commit

Permalink
Merge pull request #33502 from Zeit-Labs/shadinaif/FC-0012-OEP-58.atl…
Browse files Browse the repository at this point in the history
…as-pull

feat: FC-0012 - add atlas pull behind a flag
  • Loading branch information
Feanil Patel authored Jan 11, 2024
2 parents e3b122b + a6b180c commit 02f8731
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 0 deletions.
3 changes: 3 additions & 0 deletions Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -147,6 +147,9 @@ COPY . .
# Install Python requirements again in order to capture local projects
RUN pip install -e .

# Setting edx-platform directory as safe for git commands
RUN git config --global --add safe.directory /edx/app/edxapp/edx-platform

# Production target
FROM base as production

Expand Down
7 changes: 7 additions & 0 deletions Makefile
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,7 @@ push_translations: ## push source strings to Transifex for translation

pull_translations: ## pull translations from Transifex
git clean -fdX conf/locale
ifeq ($(OPENEDX_ATLAS_PULL),)
i18n_tool transifex pull
i18n_tool extract
i18n_tool dummy
Expand All @@ -65,6 +66,12 @@ pull_translations: ## pull translations from Transifex
git clean -fdX conf/locale/eo
i18n_tool validate --verbose
paver i18n_compilejs
else
find conf/locale -mindepth 1 -maxdepth 1 -type d -exec rm -r {} \;
atlas pull $(OPENEDX_ATLAS_ARGS) translations/edx-platform/conf/locale:conf/locale
i18n_tool generate
paver i18n_compilejs
endif


detect_changed_source_translations: ## check if translation files are up-to-date
Expand Down

0 comments on commit 02f8731

Please sign in to comment.