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
will list the right route, similar to the pages that are working:
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 problemwill list the right route, similar to the pages that are working:
Solution
i managed to make it work by ditching
custom-routes module and using app/router.options.ts instead, like so: