<p>I'm currently using <code>.resx</code> files to manage my server side resources for .NET.</p>

<p>the application that I am dealing with also allows developers to plugin JavaScript into various event handlers for client side validation, etc.. What is the best way for me to localize my JavaScript messages and strings?  </p>

<p>Ideally, I would like to store the strings in the <code>.resx</code> files to keep them with the rest of the localized resources.</p>

<p>I'm open to suggestions.</p>

I would use an object/array notation:
```
```
var phrases={};
phrases['fatalError'] ='On no!';
```
```
Then you can just swap the JS file, or use an Ajax call to redefine your phrase list.