From 5241d151ccccefbdf2d6c6bc82861f77c134ba23 Mon Sep 17 00:00:00 2001
From: vincentlu <t1341870251@gmail.com>
Date: 星期四, 27 三月 2025 11:16:04 +0800
Subject: [PATCH] #
---
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