Skip to content

MFEs aren't changing html lang attribute #745

Open
@igobranco

Description

@igobranco

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.

export function configure(options) {

Create a similar Should have a handleHTMLLang similar to handleRtl function, with code:

globalThis.document.getElementsByTagName('html')[0].setAttribute('lang', getLocale());

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions