Implicitely add lang attribute to the HTML page

so that language-specific CSS can be applied (see #909)
This commit is contained in:
tobozo
2018-07-05 08:04:04 +02:00
committed by GitHub
parent 976d31247b
commit 260f1bdbfd

View File

@@ -99,6 +99,7 @@ function parseLang(fileStr){
element.innerHTML = lang(element.getAttribute("data-translate"));
}
}
document.querySelector('html').setAttribute("lang", langJson["lang"] );
if(typeof load !== 'undefined') load();
}