All MFE pages hardcode the page language (<html lang="en-us")

and this affects tasks that depend on the browser language, such as automatic translation. How can this be fixed?

Problem:

When you change the website language (e.g., through the account page), the lang attribute in the HTML doesn’t change accordingly. Logically, this is incorrect, and it also affects language-dependent tasks, such as automatic translation extensions.

There are many MFEs so I don’t know how to effectively fix them.

I hope the front-end development team can look into this issue.

2 Likes

@brian.smith could you take a look at this?

lang="en-us" does appear to be hardcoded into index.html for both frontend-app-learner-dashboard and frontend-app-learning

I’ll need to do a bit more digging to see what a better way to handle this would be.