Skip to content

Commit f29b483

Browse files
committed
refactor(main): move setupI18n call to the end of setupApp function for improved initialization order
1 parent 43c0506 commit f29b483

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,6 @@ import { setupAppVersionNotification, setupDayjs, setupIconifyOffline, setupNPro
1313
import { queryClient } from './service/queryClient';
1414

1515
function setupApp() {
16-
setupI18n();
17-
1816
const container = document.getElementById('root');
1917

2018
if (!container) return;
@@ -31,6 +29,8 @@ function setupApp() {
3129
</ErrorBoundary>
3230
);
3331

32+
setupI18n();
33+
3434
setupNProgress();
3535

3636
setupIconifyOffline();

0 commit comments

Comments
 (0)