-
Notifications
You must be signed in to change notification settings - Fork 70
wrapPageElement error: You will need to pass in an i18next instance by using initReactI18next #117
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Comments
I managed to make it work with |
Great thanks! Your solution works well and nice explanation. I had a small difference is that my |
Now I faced another case. The message appears at the first time opening the page (e.g. via a new Incognito windows in Chrome) when there is no language selected. Hence, the plugin fallback to English language which is If I select one language, everything start to work fine. |
@leduchung glad to hear that! do you have an implementation of |
@andremonteiro95 yes I did both files. After a while, I found that it was another issue #89, so everything work fine for my site now. Thanks a lot! |
The translation works well, but when I put the Layout component (including NavBar and Footer) into the
wrapPageElement
ingatsby-browser.js
, no language detected and following message is thrown in the console:You will need to pass in an i18next instance by using initReactI18next
.Do you have any hint to implement custom
wrapPageElement
with the plugin?The text was updated successfully, but these errors were encountered: