mirror of
https://github.com/navidrome/navidrome.git
synced 2025-04-15 19:50:37 +03:00
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:
parent
9154e44eb4
commit
da21acba92
@ -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 />
|
||||
}
|
||||
|
@ -31,6 +31,7 @@ export const SelectLanguage = (props) => {
|
||||
}
|
||||
setLocale(event.target.value).then(() => {
|
||||
localStorage.setItem('locale', event.target.value)
|
||||
document.documentElement.lang = event.target.value
|
||||
})
|
||||
}}
|
||||
/>
|
||||
|
Loading…
x
Reference in New Issue
Block a user