title: Handling i18n in javascript files
body: <p>For example, my app relies heavily on the use of AJAX when doing CRUD operation.</p>
  
  <p>As of now, messages are hardcoded similar to this.</p>
  
  <pre><code>function handleSaveNewMember(xhr, status, args) {  
      if(args.validationFailed || !args.result) {   
      }else{  
          showmsg.show([{summary:'Add New Member', detail: 'Successfully Added New Member', severity: 'info'}]);
      }  
  }
  </code></pre>
  
  <p>But what if you deploy your app to a different locale?  Then how do you handle the i18n feature?</p>
  
  <p>I used Primefaces here by the way.</p>