Hi,
I’ve recently upgraded from palm
to sumac
, and I’m currently using sumac.2
with Tutor v19.0.2
.
I have noticed that the translation system has changed, and we now need to:
- Fork the openedx-translations repo for custom translations.
- Set the ATLAS configurations.
When I mount any MFE (e.g., accounts
) locally using:
tutor mounts add frontend-app-accounts
the translations no longer appear in that MFE — despite working fine on other unmounted MFEs.
I will list the steps that I am following.
- I have added
ATLAS_REPOSITORY
andATLAS_REVISION
in theconfig.yml
file - I have pushed custom translations in my forked openedx-translations and made changes in the files related to accounts translation files.
- I have mounted accounts mfe using :
tutor mounts add frontend-app-accounts
command - Then I rebuild the account image using :
tutor mounts build accounts-dev --no-cache
I can also see in the logs that the translations are fetched from my forked openedx-translations
[account-common 5/6] RUN make OPENEDX_ATLAS_PULL=true ATLAS_OPTIONS="–repository=myusername/openedx-translations --revision=my-branch " pull_translations
- Then I restart my development server using :
tutor dev restart
- In my local, I change the language from http://apps.local.openedx.io:1997/account/#site-preferences
- Now, I check on the account page, it does not get translated in the other language. On the other mfe pages (which are not mounted), I can see that they are translated.
- If I remove the mounted account mfe by
tutor mounts remove frontend-app-accounts
and then build image again usingtutor images build accounts-dev --no-cache
, now I can see that account page is showing the updated translations when the mfe is not mounted.
Note: I have also mounted the edx_platform
and I am able to see the translations on the django pages but facing issues for mounted MFEs.
How can we see the translations when we are using the locally mounted mfes.
Also, I would want to know if this is the only approach to see the custom translations while developing, do we need to build image each time we want to see the changes after we have added some new translations to the forked openedx-translations.
Can anyone guide me through the detailed steps that we need to use for mfe translations in development
and for deployment
in production
?
I am tagging some people for the help regarding this. @regis @arbrandes @sarina @braden
@ghassan @hinakhadim @jill @antoviaque @xitij2000 @leonelkatsikaris @Mahendra @fghaas @djoy @Arslan_Ashraf @omar @Andres.Aulasneo