useLocale and useTranslations not updating in client components #1813
Closed
the-content
started this conversation in
General
Replies: 1 comment
-
Solved |
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.
-
next-intl version: 4.0.2
next version: 15.2.4
When I deleted "use client" in /app/[locale]/page.jsx, the translation in page.jsx worked, but there was no change in my language. I didn't have these problems in another project. I compared it for a long time and couldn't figure out what was different from my previous code. It seemed to be the same. I copied and pasted it.
app/[locale]/page.jsx
Language component:
/components/language.jsx
/app/layout.jsx
Beta Was this translation helpful? Give feedback.
All reactions