From b8571f010ee3dec5e6cbab95f634082eefce22a8 Mon Sep 17 00:00:00 2001 From: luxiaotao1123 <t1341870251@163.com> Date: 星期二, 03 十二月 2024 09:29:09 +0800 Subject: [PATCH] # --- zy-acs-flow/src/App.jsx | 10 ++++++++-- 1 files changed, 8 insertions(+), 2 deletions(-) diff --git a/zy-acs-flow/src/App.jsx b/zy-acs-flow/src/App.jsx index 22d624a..9b38f36 100644 --- a/zy-acs-flow/src/App.jsx +++ b/zy-acs-flow/src/App.jsx @@ -7,6 +7,7 @@ localStorageStore, useStore, StoreContextProvider, + resolveBrowserLocale, } from "react-admin"; import polyglotI18nProvider from 'ra-i18n-polyglot'; import englishMessages from './i18n/en'; @@ -30,11 +31,16 @@ return englishMessages; }, // default - 'en', + // 'en', + resolveBrowserLocale('en', { fullLocale: true }), [ { locale: 'en', name: 'English' }, { locale: 'zh', name: '绠�浣撲腑鏂�' }, - ] + ], + { + // msg in console + allowMissing: true, + } ); const store = localStorageStore(SPA_VERSION, SPA_NAME); -- Gitblit v1.9.1