Dresel / RouteLocalization

RouteLocalization is an MVC and Web API package that allows localization of your attribute routes.
MIT License
67 stars 13 forks source link

Using RouteJS lib #56

Open JobaDiniz opened 8 years ago

JobaDiniz commented 8 years ago

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)

Dresel commented 8 years ago

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.