Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我需要两种语言版本的网站,它们分别位于domainname/lang1/somecontroller和domainname/lang2/somecontroller url。什么样的路由文件架构允许我避免为每种语言重复控制器声明?
* /{language}/MyController Application.MyController
应该允许您访问两种语言,然后如果您愿意,您可以访问控制器中传入的语言。