-
Notifications
You must be signed in to change notification settings - Fork 4
feat: improved local translation handling #195
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
base: main
Are you sure you want to change the base?
Conversation
deborahgu
commented
Jan 29, 2026
- pulls in any extra sources configured for credentials and edxapp
- technically I suppose there could be problems if they aren't in the environment but we are absolutely populating the environment in edx-internal
- added to the credentials docker file twice, because there's 2 different potential images where we build translations
- pulls in any extra sources configured for credentials and edxapp - technically I suppose there could be problems if they aren't in the environment but we are absolutely populating the environment in edx-internal - added to the credentials docker file twice, because there's 2 different potential images where we build translations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull request overview
This PR enhances the translation handling system by introducing support for additional translation source repositories through the OPENEDX_ATLAS_EXTRA_SOURCES build argument, making it possible to pull translations from multiple sources beyond the primary repository.
Changes:
- Added
OPENEDX_ATLAS_EXTRA_SOURCESARG andATLAS_EXTRA_SOURCESENV variables to both edx-platform and credentials Dockerfiles - Applied changes to multiple Docker build stages (translations stage in edx-platform, base and dev stages in credentials)
Reviewed changes
Copilot reviewed 2 out of 2 changed files in this pull request and generated 3 comments.
| File | Description |
|---|---|
| dockerfiles/edx-platform.Dockerfile | Added ARG and ENV declarations for extra translation sources in the translations build stage |
| dockerfiles/credentials.Dockerfile | Added ARG and ENV declarations for extra translation sources in both base and dev build stages |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
| ARG OPENEDX_ATLAS_EXTRA_SOURCES | ||
| ARG OPENEDX_TRANSLATIONS_VERSION | ||
| ARG OPENEDX_TRANSLATIONS_REPO | ||
| ENV ATLAS_EXTRA_SOURCES="--repository=$OPENEDX_ATLAS_EXTRA_SOURCES" |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ATLAS_EXTRA_SOURCES environment variable will be set to an invalid value when OPENEDX_ATLAS_EXTRA_SOURCES is empty or unset. The result would be "--repository=" which is an incomplete flag.
Consider using conditional logic to only set this environment variable when OPENEDX_ATLAS_EXTRA_SOURCES has a non-empty value, or ensure the downstream usage handles empty repository values gracefully.
| ENV TERM=xterm-256color | ||
| ENV DEBIAN_FRONTEND=noninteractive | ||
| ENV ATLAS_OPTIONS="--repository=$OPENEDX_TRANSLATIONS_REPO" | ||
| ENV ATLAS_EXTRA_SOURCES="--repository=$OPENEDX_ATLAS_EXTRA_SOURCES" |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ATLAS_EXTRA_SOURCES environment variable will be set to an invalid value when OPENEDX_ATLAS_EXTRA_SOURCES is empty or unset. The result would be "--repository=" which is an incomplete flag.
Consider using conditional logic to only set this environment variable when OPENEDX_ATLAS_EXTRA_SOURCES has a non-empty value, or ensure the downstream usage handles empty repository values gracefully.
| ENV ATLAS_EXTRA_SOURCES="--repository=$OPENEDX_ATLAS_EXTRA_SOURCES" | |
| ENV ATLAS_EXTRA_SOURCES="$OPENEDX_ATLAS_EXTRA_SOURCES" |
|
|
||
| ARG OPENEDX_ATLAS_EXTRA_SOURCES | ||
| ARG OPENEDX_TRANSLATIONS_REPO | ||
| ENV ATLAS_EXTRA_SOURCES="--repository=$OPENEDX_ATLAS_EXTRA_SOURCES" |
Copilot
AI
Jan 29, 2026
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The ATLAS_EXTRA_SOURCES environment variable will be set to an invalid value when OPENEDX_ATLAS_EXTRA_SOURCES is empty or unset. The result would be "--repository=" which is an incomplete flag.
Consider using conditional logic to only set this environment variable when OPENEDX_ATLAS_EXTRA_SOURCES has a non-empty value, or ensure the downstream usage handles empty repository values gracefully.