mirror of
https://github.com/Ernous/TorrServerJellyfin.git
synced 2025-12-19 21:46:11 +05:00
added language switch
This commit is contained in:
6
web/src/utils/useChangeLanguage.js
Normal file
6
web/src/utils/useChangeLanguage.js
Normal file
@@ -0,0 +1,6 @@
|
||||
import { useTranslation } from 'react-i18next'
|
||||
|
||||
export default () => {
|
||||
const { i18n } = useTranslation()
|
||||
return [i18n.language, lang => i18n.changeLanguage(lang)]
|
||||
}
|
||||
Reference in New Issue
Block a user