Omar's brain hash for Integrating Atlas with Open edX repos ADR
I’m writing this in Confluence for initial feedback and should be moved in a more accessible place later such as the OEP-58 itself or the open edx docs.
Integrating atlas with Micro-frontends
Micro-frontends uses multiple message sources …TBD
Example integration within the learning MFE:https://github.com/Zeit-Labs/frontend-app-learning/pull/1
A dedicated code generator is needed to create
src/i18n/index.js
because MFEs rely on static JS imports.
Integrating Atlas with edX Platform
TBD
Integrating Atlas with XBlocks
XBlocks has two features to support translations one for Python, the other is for JavaScript translations.
Python
XBlocks uses the XBlockI18nService to manage translations. This needs to be updated to find external sources.
Example PR:
get_python_locale_directory
in https://github.com/openedx/edx-platform/pull/31997
JavaScript
XBlocks uses the standards compilejsi18n
to create. This needs to be updated to find external sources.
Example PR:
get_javascript_locale_path
in https://github.com/openedx/edx-platform/pull/31997
edX Platform automation
The make pull_translations
edX Platform Makefile command needs to support both XBlock types and compile them properly in the correct location.