aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/i18n.ts
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/app/i18n.ts
parent56989fcfddbfa75636260fc70b8db0125588aef1 (diff)
downloadtimeline-b6495ef9f7d6466f9347b02e83ec0935d63af23e.tar.gz
timeline-b6495ef9f7d6466f9347b02e83ec0935d63af23e.tar.bz2
timeline-b6495ef9f7d6466f9347b02e83ec0935d63af23e.zip
...
Diffstat (limited to 'FrontEnd/src/app/i18n.ts')
-rw-r--r--FrontEnd/src/app/i18n.ts12
1 files changed, 2 insertions, 10 deletions
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.`);