aboutsummaryrefslogtreecommitdiff
path: root/FrontEnd/src/app/i18n.ts
diff options
context:
space:
mode:
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.`);