我有一个带有 Index 方法的 HorseController,例如:
[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)
{
...
}
我把这条路线翻译成:
provider.AddTranslations()
.ForKey("HorseIndex", new Dictionary<string, string>
{
{ "da", "heste-til-salg" },
{ "en", "horses-for-sale" }
})
问题是现在,丹麦用户的网址是:
http://localhost:12623/heste-til-salg?page=1&hasPicture=False&hasVideo=False
我的问题是如何翻译查询参数呢?
我无法在文档中找到它。