Next.js Discord
Discord Forum
How to get current locale of a page?
Unanswered
American Sable
posted this in
#help-forum
Open in Discord
American Sable
OP
2024-01-28T20:14:32.000Z
So im in a client component but not the page and i want to get the locale to change the state of a thing
1 Reply
@American Sable
So im in a client component but not the page and i want to get the locale to change the state of a thing
Ray
2024-01-28T20:20:16.000Z
You could use
useParams()
hook
https://nextjs.org/docs/app/api-reference/functions/use-params