Open
Description
When loading MFE using a language different than en-us. Eg: change the preferred language on the account MFE.
When we reload any MFE page, the lang html attribute didn't change even the application is translated to that new different language.
I think the MFEs should change the html lang attribute when it has been loaded with different language.
<html lang="en-us" dir="ltr">
Suggested change:
I think that the i18n configure function should change that value.
frontend-platform/src/i18n/lib.js
Line 262 in 07ee86c
Create a similar Should have a handleHTMLLang
similar to handleRtl
function, with code:
globalThis.document.getElementsByTagName('html')[0].setAttribute('lang', getLocale());
Metadata
Metadata
Assignees
Labels
No labels