title: How to internationalize Javascript Content with Spring I18N?
body: <p>How Can I Internationalize Strings located in <strong>Javascript</strong> File while Building a <strong>Spring MVC</strong> WebApp ?</p>
  
  <p>I'm using <code>&lt;spring:message code="label1" /&gt;</code> to Internationalize some static Strings In the <strong>JSP</strong> Files, but what about error messages located in my js files for example? is there a way to resolve  internationalization without including the plain js code in the jsp file ?</p>
  
  <p>I thought about creating a list of values, one for each error, and proceed with ajax calls whenever the page is refreshed, so I can get the right message according the value of the <em>lang</em> variable, but is it wise to do so ?!</p>