chore: add i18n based with useContext

This commit is contained in:
boojack
2022-08-07 22:48:22 +08:00
parent 735938395b
commit 646a41e931
14 changed files with 168 additions and 45 deletions

View File

@ -1,5 +1,6 @@
import { createRoot } from "react-dom/client";
import { Provider } from "react-redux";
import I18nProvider from "./labs/i18n/I18nProvider";
import store from "./store";
import App from "./App";
import "./helpers/polyfill";
@ -9,7 +10,9 @@ import "./css/index.css";
const container = document.getElementById("root");
const root = createRoot(container as HTMLElement);
root.render(
<Provider store={store}>
<App />
</Provider>
<I18nProvider>
<Provider store={store}>
<App />
</Provider>
</I18nProvider>
);