Fix i18n: use initImmediate false for sync initialization
i18n.init() is async by default. With initImmediate: false, it initializes synchronously so translations are ready before React hydrates. Without this, useTranslation() runs before i18n is ready, showing raw translation keys. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
parent
59ef2a4b5e
commit
18ac8a1ce3
1 changed files with 1 additions and 0 deletions
|
|
@ -24,6 +24,7 @@ export function initI18n() {
|
|||
escapeValue: false,
|
||||
},
|
||||
showSupportNotice: false,
|
||||
initImmediate: false,
|
||||
});
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue