added language switch

This commit is contained in:
Daniel Shleifman
2021-06-06 22:14:16 +03:00
parent 08b75e4a9b
commit c91952a21a
5 changed files with 60 additions and 6 deletions

View File

@@ -0,0 +1,6 @@
import { useTranslation } from 'react-i18next'
export default () => {
const { i18n } = useTranslation()
return [i18n.language, lang => i18n.changeLanguage(lang)]
}