The createMiddleware(routing) unable to detect locale, please help, I'm almost out of time #2046
Unanswered
MohammedAli73
asked this question in
Q&A
Replies: 1 comment
-
This might help: ”My page content isn’t localized despite the pathname containing a locale prefix.” |
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
Uh oh!
There was an error while loading. Please reload this page.
-
I have a usually structured app, i.e. looks like this: app/[locale]/*..., everything lives under that [locale] dynamic segment, when switching locales between static pages everything works fine, e.g.
router.push('/blog', {locale: "fr-FR"})
, it navigates, reflects in the URL, and the locale changes accordingly, but for instance navigation under app/[locale]/blog/[slug]/page.tsx works, but thegetRequestConfing()
, settles the locale to the default, tho locale is clearly diffrent in the URL ... I'm super confusedhere's my middleware:
and request configurer:
Beta Was this translation helpful? Give feedback.
All reactions