| | |
| | | localStorageStore, |
| | | useStore, |
| | | StoreContextProvider, |
| | | resolveBrowserLocale, |
| | | } from "react-admin"; |
| | | import polyglotI18nProvider from 'ra-i18n-polyglot'; |
| | | import englishMessages from './i18n/en'; |
| | |
| | | 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); |
| | |
| | | } |
| | | </> |
| | | )} |
| | | {/* CustomRoutes don't trigger checkAuth */} |
| | | <CustomRoutes> |
| | | <Route path="/dashboard" element={<Dashboard />} /> |
| | | <Route path="/settings" element={<Settings />} /> |