mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 13:36:09 +05:00
language detection fix
This commit is contained in:
@@ -2,5 +2,7 @@ import { useTranslation } from 'react-i18next'
|
|||||||
|
|
||||||
export default () => {
|
export default () => {
|
||||||
const { i18n } = useTranslation()
|
const { i18n } = useTranslation()
|
||||||
return [i18n.language, lang => i18n.changeLanguage(lang)]
|
const currentLanguage = i18n.language === 'en-US' || i18n.language === 'en' ? 'en' : i18n.language
|
||||||
|
|
||||||
|
return [currentLanguage, lang => i18n.changeLanguage(lang)]
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user