Skip to content

Commit af8f09e

Browse files
author
root
committed
fix(i18n): remove affiliate namespace from eager preload to prevent retry loops
The affiliate namespace was eagerly preloaded on every page load in main.tsx. If affiliate.json fails to load (e.g. missing in deployment or path resolution issues), i18next-http-backend retries continuously, causing significant slowdowns on every page visit. Since the affiliate route is already lazy-loaded (affiliate.lazy.tsx), the i18n translations will now only load on-demand when users actually navigate to the affiliate page — consistent with the lazy-loading strategy already in place. Fixes: #31
1 parent 9fd1145 commit af8f09e

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

apps/user/src/main.tsx

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,6 @@ initializeI18n({
2727
supportedLngs,
2828
fallbackLng,
2929
ns: [
30-
"affiliate",
3130
"auth",
3231
"components",
3332
"dashboard",

0 commit comments

Comments
 (0)