From 9f7d850f985cbd1756798329b9a3669dae51ac48 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期一, 18 八月 2025 17:23:55 +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