feat: implement core-i18n package with decentralized namespace support and integrate into landing and web apps
This commit is contained in:
+14
-5
@@ -15,10 +15,19 @@ initTelemetry({
|
||||
import './main.css';
|
||||
import { lazy, StrictMode } from 'react';
|
||||
import { createRoot } from 'react-dom/client';
|
||||
import { setupI18n } from '@repo/core-i18n';
|
||||
|
||||
const App = lazy(() => import('./apps'));
|
||||
|
||||
createRoot(document.getElementById('app')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
);
|
||||
async function bootstrap() {
|
||||
// Initialize i18next and load language from secureStorage
|
||||
await setupI18n();
|
||||
|
||||
createRoot(document.getElementById('app')!).render(
|
||||
<StrictMode>
|
||||
<App />
|
||||
</StrictMode>,
|
||||
);
|
||||
}
|
||||
|
||||
bootstrap();
|
||||
|
||||
Reference in New Issue
Block a user