How to Reflect MFE Translation Changes Locally Without Rebuilding (Efficient Approach)

Hello Open edX Team,

I am currently working on implementing translations within Open edX. To do so, I’ve forked the Open edX translation repository and made some customizations. After building it, everything works fine, but the process is quite slow, especially when dealing with MFE (Micro Frontend).

My question is: Is there a more efficient way to handle so that I can see my custom translations reflected locally (in my dev environment) without having to rebuild everything each time?

For example, just like how we mount and update MFEs locally, and when we add custom changes, they work without rebuilding, is there a similar mechanism to apply custom translations in MFE and see the changes instantly without a full rebuild?

I would appreciate any guidance or solutions on this.

Thank you!

I am not sure if this would help, but if I were in your position, and would want quick access to translation, then I will use i18n/ of an MFE. This directory comes empty in recent releases. because the tranlsation no longer lives inside the code.

For example learning MFE in palm: src/i18n/index.jsx ref where it imports json files that lives here: src/i18n/messages: frontend-app-learning/src/i18n/messages at open-release/palm.master · openedx/frontend-app-learning · GitHub.

So if you work in sumac and you want to see effect of ar, you will need to create the missing file

1- Change the content of this file to be frontend-app-learning/src/i18n/index.js at open-release/sumac.master · openedx/frontend-app-learning · GitHub

import arMessages from './messages/ar.json';
const messages = {
  ar: arMessages,
};

export default messages;

2- Then either create arabic strings file or get it from openedx-translations/translations/frontend-app-learning/src/i18n/messages/ar.json at open-release/sumac.master · openedx/openedx-translations · GitHub and add it to src/i18n/messages/ar.json.

Note those above 2 steps would be overwritten on build by atlas.