I need to change the name of the route when I change the language. For example, I have a route /en/career
but when I change to Czech language, I need a route /cs/kariera
. Basically I need the URLs to be localized. Right now, when I'm on /en/career
and change language to cs, I get /cs/career
. This page should not exist at all and when I render the page on server, I correctly get 404. Can I do something like this with next-i18next package? If so, how?
I found this package https://github.com/vonschau/next-routes-with-locale which probably does exactly what I need but it's apparently no longer maintained and doesn't work under next.js 8.