Merge branch 'master' into new-torrent

This commit is contained in:
nikk gitanes
2021-09-10 04:57:33 +03:00
53 changed files with 759 additions and 122 deletions

View File

@@ -2,7 +2,12 @@ import { useTranslation } from 'react-i18next'
export default () => {
const { i18n } = useTranslation()
const currentLanguage = i18n.language === 'en-US' || i18n.language === 'en' ? 'en' : i18n.language
const currentLanguage =
i18n.language === 'en-US' || i18n.language === 'en'
? 'en'
: i18n.language === 'ru-RU' || i18n.language === 'ru'
? 'ru'
: i18n.language
return [currentLanguage, lang => i18n.changeLanguage(lang)]
}