Is there a way to compile resx file to Javascript during build time? I found only this: Localize Strings in Javascript which is useless in my case because I have really many strings to put in javascript.
Asked
Active
Viewed 1,999 times
0
-
Because I will need generator to output 200 properties. – Piotr Stapp Jun 04 '13 at 12:03
1 Answers
2
I think some of the answers in your link would allow for muliple properties.
But there are other solutions:
http://www.west-wind.com/weblog/posts/2009/Apr/02/A-Localization-Handler-to-serve-ASPNET-Resources-to-JavaScript
If you search for "convert resx json" you will find different approaches.

Remy
- 12,555
- 14
- 64
- 104
-
It is cool, but if I can do this during compilation time I can bundle this script. Anyway +1 I will explore this solution – Piotr Stapp Jun 04 '13 at 16:50
-
There are tons of similar solutions out there. We explored it too for while, but now just serialize all page resources into a json object and dump it onto the page. – Remy Jun 06 '13 at 06:07