You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If I downgrade next-translate to 1.0.1 translations are loading fine on both server-side and client-side navigation.
I checked every version prior to 1.0.5 and all versions have same problem.
adding of empty getStaticProps to my page like this
Someone have a solution for this ? This is a new problem for me too.
I'm just using a normal HOC without any extra fetching.
I think it's a false alert from "next-translate". I'm also getting:
🚨 [next-translate] In Next 10.x.x there is an issue related to i18n and getInitialProps. We recommend to replace getInitialProps to getServerSideProps on /index.js. Issue: https://github.com/vercel/next.js/issues/18396
@vaniyokk using HOC is using getInitialProps as default to avoid conflicts with HOC, and getInitialProps has this issue that will be fixed after this PR merged vercel/next.js#21930. However, to force to load the translations in a different loader you should define another loader (as you comment, and empty getStaticProps solves). For now is the only way.
I am closing the issue as it is a duplicate of this one: #453
Hi! Unfortunately translations are not loading during client-side navigation in latest version.
I have latest Next.js v10.1.0 and next-translate v1.0.5
My page is wrapped in a HOC that adding page metadata and not using any data-fetching methods.
If I downgrade next-translate to 1.0.1 translations are loading fine on both server-side and client-side navigation.
I checked every version prior to 1.0.5 and all versions have same problem.
adding of empty getStaticProps to my page like this
fixes the problem but I don't want to bloat all my pages with such dummy code.
Is there any other way to get around with this?
It looks like a regression from v1.0.1. Do you more information to investigate the problem?
The text was updated successfully, but these errors were encountered: