-
Hello, My issue is related to a project I'm building here: In my I tried to change from Can one explain me please how should I solve the issue please? Only some of the message like the one in error console is saying error: Not really understand what I'm doing bad and I would like to see what causing the issue I'm having. Please help if you can :) Thank you for your time |
Beta Was this translation helpful? Give feedback.
Replies: 3 comments 23 replies
-
Do you have a |
Beta Was this translation helpful? Give feedback.
-
If there will be anyone knowing what could be the issue here as cannot understand why the messages which are in console log are not been populated to the IntlProvider I would be so happy. I lost faith and how to solve this :( |
Beta Was this translation helpful? Give feedback.
-
I've figured out a way to dismiss these warnings by changing the Providing the <IntlProvider locale={locale as string} messages={messages}> But making sure that there is a fallback for import { IntlProvider } from "react-intl";
import { useRouter } from "next/router";
const { locale } = useRouter();
<IntlProvider locale={locale ? locale : "en"} messages={messages}>
<Component {...pageProps} />
</IntlProvider> |
Beta Was this translation helpful? Give feedback.
Do you have a
IntlProvider
declared in 1 of your ancestors in the tree?