How to route a multiple language URL with a MVC

后端 未结 4 1376
执念已碎
执念已碎 2020-12-08 15:53

I need multi-language URL route of existing controller. Let me explain more:

I have a controller with name \"Product\" and View with name \"Software\"; therefore, by

4条回答
  •  误落风尘
    2020-12-08 16:17

    You should have url something like "http://mysite.com/en/Product/Software" for English and "http://mysite.com/fr/Product/Software" for French, which would make much sense.

    Use the same view for both.

    Happy coding.

提交回复
热议问题