From 13ea8b334572c2423abb8d156fd8428f8d074172 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期四, 03 七月 2025 08:24:58 +0800 Subject: [PATCH] 1 --- 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