mirror of
https://github.com/hanzoai/sentinel.git
synced 2026-09-29 22:34:33 +00:00
17 lines
604 B
TypeScript
17 lines
604 B
TypeScript
import type {Config} from 'sentry/types';
|
|
|
|
import {initializeLocale} from './initializeLocale';
|
|
|
|
export async function initializeMain(config: Config) {
|
|
// This needs to be loaded as early as possible, or else the locale library can
|
|
// throw an exception and prevent the application from being loaded.
|
|
//
|
|
// e.g. `app/constants` uses `t()` and is imported quite early
|
|
await initializeLocale(config);
|
|
|
|
// This is dynamically imported because we need to make sure locale is configured
|
|
// before proceeding.
|
|
const {initializeApp} = await import('./initializeApp');
|
|
initializeApp(config);
|
|
}
|