Closed Mr-Nobody-li closed 12 months ago
You can use the fallback
or fallbackLocale
prop on I18nProvider
to avoid the flicker (that happens when we're loading the locale on the client):
fallback
accepts a React component to show instead of the children while the locale isn't loadedfallbackLocale
accepts a whole locale file that will be used while the locale isn't loadedSee the example here: https://github.com/QuiiBz/next-international/blob/b30e664ace0f0d470b0a5b2754e0f47e93b45040/examples/next-app/app/%5Blocale%5D/client/layout.tsx#L9
thanks , that works for me
Describe the bug There will be a flicker when using internationalization
code as follows
Expected behavior When you can see the page, internationalization is already loaded
About (please complete the following information):