K
Kinde3mo ago
guilherme

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_Kinde3mo ago
Hi, what SDK are you using and what language are you wanting?
guilherme
guilherme3mo ago
I'm using Next (app router) and I wanted PT-BR
Daniel_Kinde
Daniel_Kinde3mo 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
guilherme
guilherme3mo ago
i'm pretty sure i'm using V2, but it doesn't change the language
guilherme
guilherme3mo ago
No description
No description
No description
No description
guilherme
guilherme3mo ago
am i using the right api?
Daniel_Kinde
Daniel_Kinde3mo ago
What version are you using?
guilherme
guilherme3mo 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_Kinde3mo ago
if you look in your package.json what version is showing next kinde-auth-nextjs?
guilherme
guilherme3mo ago
2.1.15
guilherme
guilherme3mo ago
No description
Daniel_Kinde
Daniel_Kinde3mo 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_kinde3mo 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_Kinde3mo 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?
guilherme
guilherme2mo 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
More Posts