mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-15 09:13:50 +08:00
fix: translation without reloading (#1215)
* fix: translation without reloading * fix: language switch
This commit is contained in:
@ -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);
|
||||
|
Reference in New Issue
Block a user