Closed mdmoura closed 7 years ago
What about WhereUntranslated
and AddDefaultTranslation
?
.AddRouteLocalization(x =>
{
x.UseCulture("en")
.WhereUntranslated()
.AddDefaultTranslation();
x.UseCulture("pt")
.WhereController(nameof(HomeController))
.WhereAction(nameof(HomeController.Index))
.TranslateAction("");
x.UseCulture("pt")
.WhereController(nameof(AboutController))
.WhereAction(nameof(AboutController.Index))
.TranslateAction("quem-somos");
})
Does this satisfy your needs?
Yes, it does. Thank you.
I am using the following configuration:
So I get the following Routes:
Should the website also work with:
English version would have /en in the route ... The default version with no culture in the route would also be english since is the default one.
What is the best approach for this?