You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This module could feature an atlas_pull_by_module function which can be extracted from the edx-platform repository to benefit other IDAs (Python micro-services).
defatlas_pull_by_modules(module_names, locale_root, pull_options):
""" Atlas pull translations by module name instead of repository name. """atlas_pull_args= [
# Asterisk (*) is used instead of the repository name because it's not known at runtime.# The `--expand-glob` option is used to expand match any repository name that has the right module name.f'translations/*/{module_name}/conf/locale:{module_name}'formodule_nameinmodule_names
]
subprocess.run(
args=['atlas', 'pull', '--expand-glob', *pull_options, *atlas_pull_args],
check=True,
cwd=locale_root,
)
Other classes such as BaseAtlasPullCommand can be extracted to this repository to make the edx-platform less of a monolith while allowing other IDAs to have a pull_plugin_translations Django command:
OmarIthawi
changed the title
feat: Provide i18n tooling for Django app plugins
feat: Provide i18n atlas pull for Django apps (IDAs) plugins | FC-0012
Feb 15, 2024
This module could feature an
atlas_pull_by_module
function which can be extracted from theedx-platform
repository to benefit other IDAs (Python micro-services).Other classes such as
BaseAtlasPullCommand
can be extracted to this repository to make theedx-platform
less of a monolith while allowing other IDAs to have apull_plugin_translations
Django command:openedx/core/djangoapps/plugins/i18n_api.py
moduleRelated
i18n_tool compile [DIRECTORY]
command | FC-0012 i18n-tools#141FC-0012 Project
This issue was reported during the FC-0012 project which implements the Translation Infrastructure update OEP-58.
The text was updated successfully, but these errors were encountered: