Messages are working on one path, but on the other path ([slug]) it throws No messages were configured on the provider. #1585
Unanswered
murbanowicz
asked this question in
Q&A
Replies: 1 comment
-
Hmm, are you trying to render the message in a Server or a Client Component? If it's a Server Component, it seems like somehow no Any chance the negative lookahead in your middleware somehow matches the post you're looking at? I'm typically suggesting matching on locale prefixes since it's usually safer. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hi,
I am pulling hair out of my head for hours now and I have no idea.
I have so far pretty simple web - landing which is redirected to BLOG index (latest posts) and this is working - I get the translations there.
However, I have also /[locale]/blog/[slug] and for some weird reason, the translations are not working there throwing the mentioned error:
No messages were configured on the provider.
Both pages are using same layout (app router). I am on the latest version of the library.
Only last clue I have is that it may be related to the matcher config:
however I had to comment out as you see, because otherwise the assets stop working, but I don't believe this is it.
Other clue can be that only on the post page (the one which is not working) I see another error about missing timezone, while on the posts list (which is working) I do not see this error.
Any idea, anything specific to double check etc?
I love the library and didn't have anything like that before.
Beta Was this translation helpful? Give feedback.
All reactions