Replies: 1 comment
-
Hey! This feature is discussed in #653 and I'm currently working on an implementation in #1086. I'll probably share a prerelease in the linked issue to get feedback from users, you might want to subscribe there if you're interested! |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Hey there - I got a simple question that can we rewrite the locale prefix to something else?
For example if we set
en
andde
for the locals but want to rewrite theen
tous
(since english pathname isen-US
), is it possible to achieve this behavior within this package? In short, what we want islocalhost:3000/
for default locale, butlocalhost:3000/us
for english locale, notlocalhost:3000/en
.Because we detect the first language from browser header, we can't set like
locales: ['us', 'de']
since browser just tell usen
value otherwise it redirectes to the defaultLocale.I tried to use
pathnames
feature like below but it didn't work:Beta Was this translation helpful? Give feedback.
All reactions