Skip to content

Commit a0a2d0d

Browse files
pedromartelloarbrandes
authored andcommitted
fix: reordering initialization. i18n is required for auth errors
1 parent 945c9fc commit a0a2d0d

1 file changed

Lines changed: 9 additions & 9 deletions

File tree

src/initialize.js

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -316,6 +316,15 @@ export async function initialize({
316316
await handlers.logging();
317317
publish(APP_LOGGING_INITIALIZED);
318318

319+
// Internationalization
320+
configureI18n({
321+
messages,
322+
config: getConfig(),
323+
loggingService: getLoggingService(),
324+
});
325+
await handlers.i18n();
326+
publish(APP_I18N_INITIALIZED);
327+
319328
// Authentication
320329
configureAuth(authServiceImpl, {
321330
loggingService: getLoggingService(),
@@ -335,15 +344,6 @@ export async function initialize({
335344
await handlers.analytics();
336345
publish(APP_ANALYTICS_INITIALIZED);
337346

338-
// Internationalization
339-
configureI18n({
340-
messages,
341-
config: getConfig(),
342-
loggingService: getLoggingService(),
343-
});
344-
await handlers.i18n();
345-
publish(APP_I18N_INITIALIZED);
346-
347347
// Application Ready
348348
await handlers.ready();
349349
publish(APP_READY);

0 commit comments

Comments
 (0)