aboutsummaryrefslogtreecommitdiff
path: root/Timeline
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
commit6893a1c1e43b8fc17eaaba72db90494d946b5091 (patch)
tree9bb466e06fe41c5792315d48701e758d146a822c /Timeline
parent02bb1b3ae177c68d6fe59c6ad033a59e82e3903c (diff)
downloadtimeline-6893a1c1e43b8fc17eaaba72db90494d946b5091.tar.gz
timeline-6893a1c1e43b8fc17eaaba72db90494d946b5091.tar.bz2
timeline-6893a1c1e43b8fc17eaaba72db90494d946b5091.zip
fix(front): Fix #95 .
Diffstat (limited to 'Timeline')
-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',