I have a HorseController with its Index method like:
[GET("Index", TranslationKey = "HorseIndex")]
[AllowAnonymous]
public ActionResult Index(int? page, HorseTypes? type, HorseGenders? gender, HorseBreeds? breed, HorseJumps? jump,
HorseDressages? dressage, String maxAge, String priceFrom, String priceTo, Country? country, bool? hasPicture, bool? hasVideo)
{
...
}
and I translate this route like:
provider.AddTranslations()
.ForKey("HorseIndex", new Dictionary<string, string>
{
{ "da", "heste-til-salg" },
{ "en", "horses-for-sale" }
})
The issue is that now, the url for a danish user is:
http://localhost:12623/heste-til-salg?page=1&hasPicture=False&hasVideo=False
My question is how to translate query parameters too?
I am not able to find this in documentation.