mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
Merge branch 'master' into new-torrent
This commit is contained in:
@@ -2,12 +2,7 @@ import { useTranslation } from 'react-i18next'
|
||||
|
||||
export default () => {
|
||||
const { i18n } = useTranslation()
|
||||
const currentLanguage =
|
||||
i18n.language === 'en-US' || i18n.language === 'en'
|
||||
? 'en'
|
||||
: i18n.language === 'ru-RU' || i18n.language === 'ru'
|
||||
? 'ru'
|
||||
: i18n.language
|
||||
const currentLanguage = i18n.language.substr(0, 2)
|
||||
|
||||
return [currentLanguage, lang => i18n.changeLanguage(lang)]
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user