From c367445c2f3f5d4b5abe117e229616ef4ab5db10 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E4=B8=87=E7=BA=AF?= Date: Fri, 5 Mar 2021 18:49:13 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20plugin-locale=E9=BB=98=E8=AE=A4?= =?UTF-8?q?=E8=AF=AD=E8=A8=80=E6=9C=80=E7=BB=88=E6=98=AF=E4=B8=AD=E6=96=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/fes-plugin-locale/src/runtime/core.tpl | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/packages/fes-plugin-locale/src/runtime/core.tpl b/packages/fes-plugin-locale/src/runtime/core.tpl index 6fa1216d..232acc8c 100644 --- a/packages/fes-plugin-locale/src/runtime/core.tpl +++ b/packages/fes-plugin-locale/src/runtime/core.tpl @@ -35,7 +35,10 @@ const getDefaultLocale = () => { fallbackLocale: window.navigator.language, }; } - return {}; + return { + locale: 'zh-CN', + fallbackLocale: 'zh-CN', + }; }; const messages = {};