title: How to use language properties with Spring MVC 4 and jQuery I18N?
body: <p>I'm developing a web app with Spring MVC 4 and jQuery I18N. I have already checked the following links without success:</p>
  
  <p><a href="https://stackoverflow.com/questions/15637059/how-to-dynamically-change-language-using-jquery-i18n-properties-and-javascript">How to dynamically change language using jquery-i18n-properties and JavaScript?</a></p>
  
  <p><a href="https://stackoverflow.com/questions/17650773/how-to-load-i18n-property-file-using-jquery-i18n-properties-js-spring-3-mvc">How to load i18n Property file using jQuery.i18n.properties.js + Spring 3 mvc</a></p>
  
  <p>But when I access to the page, I'm getting <strong>404 Not found error</strong> in the developer's chrome console:</p>
  
  <p><img src="https://i.stack.imgur.com/0izPh.png" alt="enter image description here"></p>
  
  <p>My project structure is:</p>
  
  <p><img src="https://i.stack.imgur.com/osv3A.png" alt="enter image description here"></p>
  
  <p>In <strong>cheque.js (Brown square in structure)</strong> I have the following code:</p>
  
  <pre><code>function loadBundles(lang) {
      jQuery.i18n.properties({
          name:'messages', 
          path:'i18n/',
          mode:'both',
          language:lang,
          callback: function(){
              console.log(jQuery.i18n.prop('check_receiver'))
          }
      });
  }
  ...
  loadBundles('es');
  ...
  </code></pre>
  
  <ol>
  <li>In the red square is the file required to use jquery.i18n. </li>
  <li>In the blue square I have the I18N properties files.</li>
  <li>In the pink square are the files that contains the web page</li>
  </ol>
  
  <p>In the <strong>webmvc-config.xml</strong> I have the following code:</p>
  
  <pre><code>&lt;mvc:resources location="/, classpath:/META-INF/web-resources/"
          mapping="/resources/**" /&gt;
  
  &lt;bean class="org.springframework.context.support.ReloadableResourceBundleMessageSource" p:defaultEncoding="ISO-8859-1"
          id="messageSource" p:basenames="WEB-INF/i18n/messages"
          p:fallbackToSystemLocale="false" /&gt;
  
      &lt;!-- Store preferred language configuration in a cookie --&gt;
      &lt;bean class="org.springframework.web.servlet.i18n.CookieLocaleResolver"
          id="localeResolver"&gt;
          &lt;property name="defaultLocale" value="es" /&gt;
      &lt;/bean&gt;
  </code></pre>
  
  <p>Does the path in the javascript function is incorrect?</p>
  
  <p>Is there any other file required by jQuery I18N?</p>
  
  <p>Thanks in advance!!!</p>