RouteLocalization
RouteLocalization copied to clipboard
Using RouteJS lib
RouteJS provides a way to generate mvc routes from javascript:
I tried the following:
var url = Router.action('DataSouce', 'Create', { culture: 'en-us' });
However, culture parameter doesn't do anything. The resulted url is: /fonte-dados/Novo?culture=en-us (Portuguese)
Thanks for reporting this issue.
I dug into the RouteJS library - the problem is how RouteJS and RouteLocalization works internally. I will change the implementation from one LocalizationCollectionRoute per action to multiple MVC standard routes per translation (I'll have to do this anyway for MVC6 / ASP.NET Core) - this should then be compatible with RouteJS.