From b0b0edab16c99ce9cef0bbb4cd10e05a3cb3ffd7 Mon Sep 17 00:00:00 2001 From: Haishan Date: Sun, 6 Dec 2020 20:12:16 +0800 Subject: build: upgrade deps --- src/misc/i18n.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/misc') diff --git a/src/misc/i18n.ts b/src/misc/i18n.ts index 023c5d7..6155732 100644 --- a/src/misc/i18n.ts +++ b/src/misc/i18n.ts @@ -32,6 +32,7 @@ i18next switch (url) { case '/__zh/translation.json': + case '/__zh-CN/translation.json': p = allLocales.zh; break; case '/__en/translation.json': @@ -47,7 +48,7 @@ i18next } }, }, - supportedLngs: ['en', 'zh'], + supportedLngs: ['en', 'zh-CN'], fallbackLng: 'en', interpolation: { escapeValue: false, -- cgit v1.3.1