Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: FC-0012 - add atlas pull behind a flag #33502

Merged
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
shadinaif marked this conversation as resolved.
Show resolved Hide resolved
i18n_tool extract
i18n_tool dummy
shadinaif marked this conversation as resolved.
Show resolved Hide resolved
Expand All @@ -65,6 +66,12 @@ pull_translations: ## pull translations from Transifex
git clean -fdX conf/locale/eo
i18n_tool validate --verbose
shadinaif marked this conversation as resolved.
Show resolved Hide resolved
paver i18n_compilejs
shadinaif marked this conversation as resolved.
Show resolved Hide resolved
else
shadinaif marked this conversation as resolved.
Show resolved Hide resolved
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


shadinaif marked this conversation as resolved.
Show resolved Hide resolved
detect_changed_source_translations: ## check if translation files are up-to-date
Expand Down
Loading