Merge pull request #5685 from aidalgol/root-lang-attrib-fix

Set html lang attribute from language setting
This commit is contained in:
Matthew Hodgson 2017-11-30 10:12:40 +00:00 committed by GitHub
commit 2a402985aa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -387,6 +387,7 @@ async function loadLanguage() {
} }
try { try {
await languageHandler.setLanguage(langs); await languageHandler.setLanguage(langs);
document.documentElement.setAttribute("lang", languageHandler.getCurrentLanguage());
} catch (e) { } catch (e) {
console.error("Unable to set language", e); console.error("Unable to set language", e);
} }