title: Multiple language error messages in javascript
body: <p>we are creating international versions of our online store and i have been tasked with the job of untangling all the javascript error messages, so they appear in the relevant language on that site.</p>
  
  <p>What i obviously want to do is keep the same set of javascript for all the sites, but just load in a set of error messages from a german/french/italian language text file for example. I thought that this might be possible to do with separate json files that just hold a set of plain text error messages.</p>
  
  <p>Can anyone suggest the easiest and most scalable solution to this issue? Thanks.</p>