[i18n] Get current locale
Unanswered
Savannah posted this in #help-forum
SavannahOP
Hello, I am currently facing a problem. I'd like to get the current language the user is on, so I can redirect him to the right path when he authenticates with google (see code below).
2 Replies
SavannahOP
<button onClick={() => signIn('google', {callbackUrl: '/dashboard'})}>Sign in with Google</button>(here, it should be something like 'en/dashboard' or 'es/dashboard')