Skip to content

Is it possible to call useLocale() also in a client component? #463

Answered by Yedidya10
Yedidya10 asked this question in Q&A
Discussion options

You must be logged in to vote

I found an answer to that.
Use the following locale Param:

import { useParams } from 'next/navigation'
const { locale } = useParams()

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by Yedidya10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant