mirror of
https://github.com/element-hq/element-web.git
synced 2024-12-03 20:36:57 +03:00
Merge pull request #5685 from aidalgol/root-lang-attrib-fix
Set html lang attribute from language setting
This commit is contained in:
commit
2a402985aa
1 changed files with 1 additions and 0 deletions
|
@ -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 a new issue