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

@ -74,6 +74,7 @@ import ModelEditPage from "./ModelEditPage";
import SystemInfo from "./SystemInfo";
import AdapterListPage from "./AdapterListPage";
import AdapterEditPage from "./AdapterEditPage";
import {withTranslation} from "react-i18next";
const {Header, Footer} = Layout;
@ -798,4 +799,4 @@ class App extends Component {
}
}
export default withRouter(App);
export default withRouter(withTranslation()(App));