gilsdav / ngx-translate-router

Translate routes using ngx-translate
131 stars 43 forks source link

Feature/angular 18 redirect #164

Closed gilsdav closed 5 months ago

gilsdav commented 5 months ago

@ruizmarc I published it but when I test it, "conditionalRedirectTo" is not translated to "redirectionConditionnelle"

gilsdav commented 5 months ago

Just fixed by changing this part:

image

Can you explain the issue for why you did a return here ?

ruizmarc commented 5 months ago

That makes sense. I just assumed that redirecting with a function was not expecting path translation, but clearly it is a possibility that we should take into account :)

gilsdav commented 5 months ago

Now you can get same result than before using this path: "!conditionalRedirectTo"