aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-10-27 21:38:59 +0800
committercrupest <crupest@outlook.com>2020-10-27 21:38:59 +0800
commitb6495ef9f7d6466f9347b02e83ec0935d63af23e (patch)
tree3becaab1f003c19afaca440185317fa539391cc6 /FrontEnd/src
parent56989fcfddbfa75636260fc70b8db0125588aef1 (diff)
downloadtimeline-b6495ef9f7d6466f9347b02e83ec0935d63af23e.tar.gz
timeline-b6495ef9f7d6466f9347b02e83ec0935d63af23e.tar.bz2
timeline-b6495ef9f7d6466f9347b02e83ec0935d63af23e.zip
...
Diffstat (limited to 'FrontEnd/src')
-rw-r--r--FrontEnd/src/app/App.tsx3
-rw-r--r--FrontEnd/src/app/i18n.ts12
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.`);