Replies: 7 comments 2 replies
-
This has been asked before #1154 but the issue got closed because of the conversation stopped. I don't think this is high on our list for now, but you can always do it with custom pages: |
Beta Was this translation helpful? Give feedback.
-
Ok, I thought it would be good to have at least a (non-closed) open issue as i18n routes are a core feature of Next.js and thereby should be supported somehow in next-auth (at least in the long run) as well. |
Beta Was this translation helpful? Give feedback.
-
Hello, Has anyone figured this part out? Edit: |
Beta Was this translation helpful? Give feedback.
-
i18n is pretty essential, would be cool to see a new attempt after the previous work was scrapped. |
Beta Was this translation helpful? Give feedback.
-
This is a shame. |
Beta Was this translation helpful? Give feedback.
-
Truly unfortunate. |
Beta Was this translation helpful? Give feedback.
-
Sad indeed |
Beta Was this translation helpful? Give feedback.
-
Description 📓
Currently, NextAuth.js does not support internationalized routing. When for example calling
signIn()
I end up with a URL where my current locale is removed (in contrast to using a link or router).A very straightforward and non-breaking way would be to allow to set a
locale
option when usingsignIn
, e.g.That could be easily implemented, for example here with something like this:
What do you think?
How to reproduce ☕️
de
localehttp://myapp.com/de
signIn()
(e.g. by pressing a button)http://myapp.com/signin?callbackUrl=http://myapp.com/de
http://myapp.com/de/signin?callbackUrl=http://myapp.com/de
Contributing 🙌🏽
Yes, I am willing to help implement this feature in a PR
Beta Was this translation helpful? Give feedback.
All reactions