K
Kinde10mo ago
bozo

Language on default layout

Is it possible to define what language I want the default layout (used for sign in and sign up) to use or do I have to write my whole own pages?
15 Replies
Daniel_Kinde
Daniel_Kinde10mo ago
Hi, what SDK are you using and what language are you wanting?
bozo
bozoOP10mo ago
I'm using Next (app router) and I wanted PT-BR
Daniel_Kinde
Daniel_Kinde10mo ago
This is how you can do it with version 2 of the API
<LoginLink authUrlParams={{
lang: 'pt-br'
}}>Sign in</LoginLink>
<LoginLink authUrlParams={{
lang: 'pt-br'
}}>Sign in</LoginLink>
If you're using verson 1 let me know
bozo
bozoOP10mo ago
i'm pretty sure i'm using V2, but it doesn't change the language
bozo
bozoOP10mo ago
No description
No description
No description
No description
bozo
bozoOP10mo ago
am i using the right api?
Daniel_Kinde
Daniel_Kinde10mo ago
What version are you using?
bozo
bozoOP10mo ago
Kinde Docs
NextJS App Router SDK - Developer tools - Help center
Our developer tools provide everything you need to get started with Kinde.
Daniel_Kinde
Daniel_Kinde10mo ago
if you look in your package.json what version is showing next kinde-auth-nextjs?
bozo
bozoOP10mo ago
2.1.15
bozo
bozoOP10mo ago
No description
Daniel_Kinde
Daniel_Kinde10mo ago
Let me check this for you further, your code looks correct I can't reproduce it happening, can you delete your node modules folder, reinstall and try again please?
ev_kinde
ev_kinde10mo ago
Just to make sure, are the necessary languages enabled in the Kinde configuration? It is not going to switch if the language is not enabled.
Daniel_Kinde
Daniel_Kinde10mo ago
Yes, pt-br is supported, I was able to switch my language using the code I sent. Have you tried reinstallign the packages? You can see the list of supported languages here: https://github.com/kinde-oss/kinde-translations. HI @guilherme, Hope you're good, have you been able to get this working?
bozo
bozoOP9mo ago
Hi, I forgot to respond here I got it to work. The issue was that I just didn't know i had to actually activate the language on the dashboard settings on kinde
Want results from more Discord servers?
Add your server