Enable suspense mode for i18n library

The changes introduce suspense mode in the i18n settings, waiting until all languages are loaded. The loading state now shows a global loading
This commit is contained in:
giancarlo
2024-04-16 21:46:18 +08:00
parent 85ad61c20e
commit eea6f8121a
3 changed files with 18 additions and 15 deletions

View File

@@ -61,5 +61,8 @@ export function getI18nSettings(
fallbackNS: defaultI18nNamespaces,
defaultNS: defaultI18nNamespaces,
ns,
react: {
useSuspense: true,
},
};
}