aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorcrupest <crupest@outlook.com>2020-06-10 20:13:24 +0800
committercrupest <crupest@outlook.com>2020-06-10 20:13:24 +0800
commit4b8abdd1921935ebb29d18961534db04a2e58fbb (patch)
tree37fcdd0937afbe79a3f18c9e562a8d7223e95f02
parentcaf8745d82819c3f5f07e2f927b5c02dc7ccea61 (diff)
downloadtimeline-4b8abdd1921935ebb29d18961534db04a2e58fbb.tar.gz
timeline-4b8abdd1921935ebb29d18961534db04a2e58fbb.tar.bz2
timeline-4b8abdd1921935ebb29d18961534db04a2e58fbb.zip
fix(front): Fix #95 .
-rw-r--r--Timeline/ClientApp/src/i18n.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/Timeline/ClientApp/src/i18n.ts b/Timeline/ClientApp/src/i18n.ts
index a752cfa4..aa293819 100644
--- a/Timeline/ClientApp/src/i18n.ts
+++ b/Timeline/ClientApp/src/i18n.ts
@@ -24,7 +24,7 @@ const backend: BackendModule = {
)
).default;
success(res);
- } else if (language === 'zh') {
+ } else if (language === 'zh-cn' || language === 'zh') {
const res = (
await import(
/* webpackChunkName: "locales-zh" */ './locales/zh/translation'
@@ -44,7 +44,7 @@ export const i18nPromise = i18n
.use(backend)
.use(initReactI18next) // bind react-i18next to the instance
.init({
- fallbackLng: 'en',
+ fallbackLng: false,
lowerCaseLng: true,
debug: process.env.NODE_ENV === 'development',