0

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.

Community
  • 1
  • 1
Piotr Stapp
  • 19,392
  • 11
  • 68
  • 116

1 Answers1

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