Is there a way to notify the Browser that the current Language has changed?

Viewed 88

In a SPA that is initially loaded with <html lang="fr"> when the user changes the language to english, chrome for example still offers the user to translate the website from french to his OS Language eventhough the lang attribute has been updated with:

document.documentElement.setAttribute('lang', 'en');

So I'm wondering if there is a anotherway to change the working language of the website, or to tell the browser that the current language of the website has changed.

0 Answers
Related