Next-intl
Unanswered
Common carp posted this in #help-forum
Common carpOP
Hi I have the following problem with the next-intl library,
I translate the route in the navigation.js file as the following sample:
'/about-us': {
en: '/about-us',
es: '/sobre-nosotros'
},
always went well until I chage the language to spanish. When I do that, next-intl does a redirect and add another the lng (thats fine) but the problem is that they do it even if the lng is there. and sample of that is:
when i write the url localhost:4000/es/sobre-nostros then next redirect to localhost:4000/es/es/sobre-nosotros and the last url does not exist. Thanks
I'm using next-intl version 3 and next 14 with app router
I translate the route in the navigation.js file as the following sample:
'/about-us': {
en: '/about-us',
es: '/sobre-nosotros'
},
always went well until I chage the language to spanish. When I do that, next-intl does a redirect and add another the lng (thats fine) but the problem is that they do it even if the lng is there. and sample of that is:
when i write the url localhost:4000/es/sobre-nostros then next redirect to localhost:4000/es/es/sobre-nosotros and the last url does not exist. Thanks
I'm using next-intl version 3 and next 14 with app router