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:
@@ -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
|
||||
})
|
||||
}}
|
||||
/>
|
||||
|
||||
Reference in New Issue
Block a user