Cannot change language to Vietnamese in Sumuc version

Hello everybody,
I have been planning to upgrade OpenEdx from Koa native to Sumac version. I have installed Sumac by using Tutor on server dev, I tried to changed language to Vietnamese by:
Change language code in config file to vi, after that running command: tutor local start -d, but language is still English by default.
Did I do something wrong?
Please help me to resolve the issue. Thanks

Hey @omar is there something different about translations using Atlas in Sumac that would change how this is done since Koa?

hi @sarina, I will deploy a new version, not upgrading from Koa. I don’t know how to change language to Vietnamese

@vuthehuyht did you change your language in the account settings?

There’s a couple of little documented feature flags that you need to enable such as “Dark Lang” feature in the lms /admin panel. Did you enable that there?

@omar It is enabled by default like that


That is LMS and CMS, but to MFE do I have to rebuild it?

I’m checking and I’ve found two issues:

Regarding MFEs, yes. Please set ATLAS_REVISION: open-release/sumac.master and rebuild MFEs. It should show you the latest translations in the following file: openedx-translations/translations/frontend-app-learning/src/i18n/messages/vi.json at open-release/sumac.master · openedx/openedx-translations · GitHub

The account MFE needs to be patched to add Vietnamese as well due to an open but unresolved issue:

I hope that helps.

1 Like

Thank your help
I forked it to my github and fixed it.
To MFEs, I did your instructions, but the language is still English, not changing to Vietnamese.
I did a small patch to account MFE, but after rebuilding, I do not see the new language option I added

@vuthehuyht Unfortunately, the project I work on still using the old account page so I’m not really sure what the fix it.

@omar I see. I have checked the cookies, I see that: openedx-language-preference: en. It seems I missed any settings. Do you know?

@omar I have forked translations of edx-platform to my repo and fixed it. And I rebuilt edx-platform but language is still English not changing to Vietnamese.
Here is inside container
image
The po file in vi compiled

@vuthehuyht
I also use the Sumac version. Here’s what I did to get translations working:

  1. You need to enable darkLang.

  2. Add the Language Selector in Site Configuration.

  3. If you are using your own fork, you need to specify it with the command:

tutor config save --set ATLAS_REPOSITORY="your_username/openedx-translations" --set ATLAS_REVISION="branch"
  1. Then rebuild the images:
tutor images build openedx  
tutor images build mfe --no-cache  
tutor local start -d

translations don’t apply to MFE without --no-cache — I’m not sure why, but you can ask about this on the forum
After all these steps, translations will apply 100% of the time.
If this doesn’t help, it’s likely that there is an issue in your Open edX installation, and deeper investigation is needed.
Hope this helps!

1 Like

Thanks for your help. My website has almost changed to Vietnamese, and a small part may not be translated, so some parts have English text
Once thank you

you should add your personal translation to openedx-translations and rebuild images again

1 Like