Give page the right lang attribute (#2299)

* Fixed issue no #2174

Signed-off-by: Subhajit Ghosh <subhajitstd07@gmail.com>

* Fixed issue no #2174

---------

Signed-off-by: Subhajit Ghosh <subhajitstd07@gmail.com>
This commit is contained in:
Subhajit Ghosh
2023-04-08 23:09:59 +05:30
committed by GitHub
parent 9154e44eb4
commit da21acba92
2 changed files with 3 additions and 0 deletions
+2
View File
@@ -142,6 +142,8 @@ const Admin = (props) => {
}
const AppWithHotkeys = () => {
let language = localStorage.getItem('locale') || 'en'
document.documentElement.lang = language
if (config.enableSharing && shareInfo) {
return <SharePlayer />
}