mirror of
https://github.com/SchildiChat/element-web.git
synced 2024-10-01 01:26:12 -04:00
Set html lang attribute from language setting
This commit is contained in:
parent
c28d9e5cde
commit
c0a5c28d80
@ -1,5 +1,5 @@
|
||||
<!doctype html>
|
||||
<html lang="en" style="height: 100%;">
|
||||
<html id="root" lang="en" style="height: 100%;">
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>Riot</title>
|
||||
|
@ -382,6 +382,7 @@ async function loadLanguage() {
|
||||
}
|
||||
try {
|
||||
await languageHandler.setLanguage(langs);
|
||||
document.getElementById("root").setAttribute("lang", languageHandler.getCurrentLanguage());
|
||||
} catch (e) {
|
||||
console.error("Unable to set language", e);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user