fix: translation without reloading (#1215)

* fix: translation without reloading

* fix: language switch
This commit is contained in:
Chell
2022-10-12 13:52:02 +02:00
committed by GitHub
parent 23f3fe1e3c
commit 8f7a8d7d4f
4 changed files with 7 additions and 4 deletions

View File

@ -29,6 +29,7 @@ import i18next from "i18next";
import CustomGithubCorner from "../CustomGithubCorner";
import {CountDownInput} from "../common/CountDownInput";
import SelectLanguageBox from "../SelectLanguageBox";
import {withTranslation} from "react-i18next";
const {TabPane} = Tabs;
@ -730,4 +731,4 @@ class LoginPage extends React.Component {
}
}
export default LoginPage;
export default withTranslation()(LoginPage);