From f5cef8a9611f268415665a8bfcd9c6471ee5da88 Mon Sep 17 00:00:00 2001 From: zhang <zc857179121@qq.com> Date: 星期二, 02 九月 2025 14:01:32 +0800 Subject: [PATCH] 1 --- zy-acs-flow/src/App.jsx | 11 +++++++++-- 1 files changed, 9 insertions(+), 2 deletions(-) diff --git a/zy-acs-flow/src/App.jsx b/zy-acs-flow/src/App.jsx index f026581..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); @@ -74,6 +80,7 @@ } </> )} + {/* CustomRoutes don't trigger checkAuth */} <CustomRoutes> <Route path="/dashboard" element={<Dashboard />} /> <Route path="/settings" element={<Settings />} /> -- Gitblit v1.9.1