Translate custom routes with i18n?
I'm trying to create a custom route that's also translatable, but for some reasons it doesnt quite work.
whenever i'm trying to use it:
I'll get the translated path name, not the translation. I.e. i'll get
/en/miau
(instead of /en/miau-translated
). The path DO WORK, the translation is the only problem
will list the right route, similar to the pages that are working:
Solution:Jump to solution
i managed to make it work by ditching
custom-routes
module and using app/router.options.ts
instead, like so:
```ts
import type { RouterConfig } from "nuxt/schema";
...3 Replies