Customize translation in LMS and CMS

What is the url of your custom mfe that you put in the plugin?

@FatemeKhodayari hi this is my dashboard.py:

from tutormfe.hooks import MFE_APPS

@MFE_APPS.add()
def _add_my_mfe(mfes):
    mfes["learner-dashboard"] = {
        "repository": "https://github.com/Arthur378/frontend-app-learner-dashboard.git",
        "port": 1996,
        "version": "", # optional, will default to the Open edX current tag.
    }
    return mfes

Please specify the branch / tag name that contains your changes in version.

Excuse me, I’m a beginner, if you can tell me more precisely, what should I do? I forked from the address you gave me on Git and edited the file you said, did I make a mistake? Can you check the link?how can I specify the branch or tag?

What is the branch name that you pushed your changes to? Looking at your repository, I guess it must be master. So your MFE plugin must look like this:

from tutormfe.hooks import MFE_APPS

@MFE_APPS.add()
def _add_my_mfe(mfes):
    mfes["learner-dashboard"] = {
        "repository": "https://github.com/Arthur378/frontend-app-learner-dashboard.git",
        "port": 1996,
        "version": "master"
    }
    return mfes
1 Like

Thank you @FatemeKhodayari , but there are still English phrases in some parts, how can I change them?

Hello @FatemeKhodayari , thank you for your help. Can you explain this to me? I took some ID from the mfe file and translated it into fork, but it doesn’t build. What should I do? Also, the pages I sent you are still in English, where can I change them?

Hi all!

We’ve developed the Tutor plugin tutor-contrib-translations, which is intended to make small customized translations in both legacy and MFE pages, without needing to fork any repo. It can be installed with pip install tutor-contrib-translations. Instructions are in the readme at the repo.

If you try I will appreciate your comments!

Regards,
Andrés

thank you @Andres.Aulasneo