mirror of https://github.com/vector-im/riot-web
Merge pull request #5685 from aidalgol/root-lang-attrib-fix
Set html lang attribute from language settingpull/5751/head
commit
2a402985aa
|
@ -387,6 +387,7 @@ async function loadLanguage() {
|
|||
}
|
||||
try {
|
||||
await languageHandler.setLanguage(langs);
|
||||
document.documentElement.setAttribute("lang", languageHandler.getCurrentLanguage());
|
||||
} catch (e) {
|
||||
console.error("Unable to set language", e);
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue