feat: extract sync_and_translate_language into new ol_openedx_ai_static_translations plugin#758
Closed
feat: extract sync_and_translate_language into new ol_openedx_ai_static_translations plugin#758
Conversation
…ts, glossaries, and dependencies Co-authored-by: asadali145 <52656433+asadali145@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Remove sync_and_translate_language command from open-edx-plugins
Remove sync_and_translate_language command from ol_openedx_course_translations
Mar 11, 2026
Co-authored-by: asadali145 <52656433+asadali145@users.noreply.github.com>
Co-authored-by: asadali145 <52656433+asadali145@users.noreply.github.com>
Copilot
AI
changed the title
Remove sync_and_translate_language command from ol_openedx_course_translations
Move sync_and_translate_language to ol-django, keep glossaries
Mar 11, 2026
65a5fef to
db57172
Compare
Combines both utility modules into a single file at the plugin root level: - Deduplicated and merged all imports - Updated constants import path from mitol.ol_ai_static_translations.utils.constants to ol_openedx_ai_static_translations.constants - command_utils functions placed first (foundational/validation utilities) - translation_sync functions follow (depend on simpler utils) - All 63 functions preserved without implementation changes Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
Move sync_and_translate_language command and related code into a new plugin following existing patterns. Remove ol_django_plugin/ directory. - New plugin with flat structure: constants.py and utils.py at package root - utils.py merges command_utils.py and translation_sync.py into single file - Glossary files included in new plugin - Settings for sync-specific config (GITHUB_TOKEN, REPO_URL, REPO_PATH) - Clean up course_translations settings to remove sync-specific settings Co-authored-by: asadali145 <52656433+asadali145@users.noreply.github.com>
Co-authored-by: asadali145 <52656433+asadali145@users.noreply.github.com>
Copilot
AI
changed the title
Move sync_and_translate_language to ol-django, keep glossaries
Extract sync_and_translate_language into new ol_openedx_ai_static_translations plugin
Mar 12, 2026
Copilot AI
added a commit
that referenced
this pull request
Mar 24, 2026
Co-authored-by: asadali145 <52656433+asadali145@users.noreply.github.com> Agent-Logs-Url: https://github.com/mitodl/open-edx-plugins/sessions/eaab10e1-8468-4675-9118-cd9b1fdac54e
Open
5 tasks
Contributor
|
Closing in favor of #769 |
asadali145
added a commit
that referenced
this pull request
Apr 13, 2026
Co-authored-by: asadali145 <52656433+asadali145@users.noreply.github.com> Agent-Logs-Url: https://github.com/mitodl/open-edx-plugins/sessions/eaab10e1-8468-4675-9118-cd9b1fdac54e
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Moves the
sync_and_translate_languagemanagement command and all supporting code out ofol_openedx_course_translationsinto a standalone plugin within open-edx-plugins (not ol-django).New plugin:
ol_openedx_ai_static_translationsutils/package.command_utils.py+translation_sync.pymerged into a singleutils.py;constants.pylives at the package rootTRANSLATIONS_GITHUB_TOKEN,TRANSLATIONS_REPO_URL,TRANSLATIONS_REPO_PATH)Changes to
ol_openedx_course_translationssettings/common.py(now owned by the new plugin)translate_courseor any other existing codeRemoved
ol_django_plugin/directory from prior iterationImport structure
Glossary path resolution updated from
.parent.parent→.parentto reflect the flat layout (utils.pyat package root instead ofutils/translation_sync.py).💬 We'd love your input! Share your thoughts on Copilot coding agent in our 2 minute survey.