diff options
author | crupest <crupest@outlook.com> | 2020-10-27 21:38:59 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2020-10-27 21:38:59 +0800 |
commit | b6495ef9f7d6466f9347b02e83ec0935d63af23e (patch) | |
tree | 3becaab1f003c19afaca440185317fa539391cc6 /FrontEnd/src | |
parent | 56989fcfddbfa75636260fc70b8db0125588aef1 (diff) | |
download | timeline-b6495ef9f7d6466f9347b02e83ec0935d63af23e.tar.gz timeline-b6495ef9f7d6466f9347b02e83ec0935d63af23e.tar.bz2 timeline-b6495ef9f7d6466f9347b02e83ec0935d63af23e.zip |
...
Diffstat (limited to 'FrontEnd/src')
-rw-r--r-- | FrontEnd/src/app/App.tsx | 3 | ||||
-rw-r--r-- | FrontEnd/src/app/i18n.ts | 12 |
2 files changed, 3 insertions, 12 deletions
diff --git a/FrontEnd/src/app/App.tsx b/FrontEnd/src/app/App.tsx index b68eddb6..4e53d4da 100644 --- a/FrontEnd/src/app/App.tsx +++ b/FrontEnd/src/app/App.tsx @@ -1,6 +1,5 @@ import React from "react"; import { BrowserRouter as Router, Route, Switch } from "react-router-dom"; -import { hot } from "react-hot-loader/root"; import AppBar from "./views/common/AppBar"; import LoadingPage from "./views/common/LoadingPage"; @@ -81,4 +80,4 @@ const App: React.FC = () => { } }; -export default hot(App); +export default App; diff --git a/FrontEnd/src/app/i18n.ts b/FrontEnd/src/app/i18n.ts index cdced7bf..aeac1f1f 100644 --- a/FrontEnd/src/app/i18n.ts +++ b/FrontEnd/src/app/i18n.ts @@ -18,18 +18,10 @@ const backend: BackendModule = { } if (language === "en") { - const res = ( - await import( - /* webpackChunkName: "locales-en" */ "./locales/en/translation" - ) - ).default; + const res = (await import("./locales/en/translation")).default; success(res); } else if (language === "zh-cn" || language === "zh") { - const res = ( - await import( - /* webpackChunkName: "locales-zh" */ "./locales/zh/translation" - ) - ).default; + const res = (await import("./locales/zh/translation")).default; success(res); } else { error(`Language ${language} is not supported.`); |