mirror of https://github.com/abpframework/abp.git
3 changed files with 23 additions and 0 deletions
@ -0,0 +1,17 @@ |
|||
( |
|||
function () { |
|||
var isRtl = JSON.parse(localStorage.getItem("Abp.IsRtl")); |
|||
var htmlTag = document.getElementsByTagName("html")[0]; |
|||
|
|||
if (htmlTag) { |
|||
var selectedLanguage = localStorage.getItem("Abp.SelectedLanguage"); |
|||
if (selectedLanguage) { |
|||
htmlTag.setAttribute("lang", selectedLanguage); |
|||
} |
|||
|
|||
if (isRtl) { |
|||
htmlTag.setAttribute("dir", "rtl"); |
|||
} |
|||
} |
|||
} |
|||
)(); |
|||
Loading…
Reference in new issue