Replies: 1 comment 3 replies
-
|
This could be relevant: My page content isn’t localized despite the pathname containing a locale prefix. But yeah, comparing it with |
Beta Was this translation helpful? Give feedback.
3 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.
Uh oh!
There was an error while loading. Please reload this page.
-
Sorry if the question is vague in advance and thanks for maintaining this lib!
My project largely follows what's in https://github.com/amannn/next-intl/blob/main/examples/example-app-router/src/app/%5Blocale%5D/layout.tsx at next.js 15, then when I bumped it to 16, without changing anything,
useLocale()would return the default locale majority of the time.What could be the issue here and how do I fix it? Side note, this only happens in PROD build (after running
next build) but not the DEV build.Tried checking the commit history of https://github.com/amannn/next-intl/blob/main/examples/example-app-router as well, but I only see
middleware.tsrenaming, which I've done it already.I do want to get a minimal reproduction repo, but given the current scale of my project, I think it's worth for a few guesses before trimming down my repo.
Beta Was this translation helpful? Give feedback.
All reactions