I am trying to internationalize my web application wich I developed in MVC 3.0.
I can read my values in .resx files from cshtml, but how can I read these values(in .resx files) from my .js files.
Is there any way to serialize or convert .resx files in JSON objects(in controllers in server side) and return that object.After that in this object I can read all ky/value pairs wothout any problem.
Is this possible or do you know any better solution of this problem.
Thank You for reading this question and for everyone who can help me.
1 Replies - 5853 Views - Last Post: 06 May 2012 - 08:06 AM
Posted 06 May 2012 - 08:05 AM
You can use jQuery's data attributes to set the values in your View, then you can access them via your .js scripts.
This post has been edited by Sergio Tapia: 06 May 2012 - 08:06 AM
Page 1 of 1