title: jquery.i18n in C# MVC
body: <p>I'm using the <code>jquery.i18n</code> library for the translations in my application. The problem is that everything works as expected, except if I go from one view to another - the locale is lost and set with the default value. I'm using also <code>jquery.history.js</code> and <code>url.min.js</code> :</p>
  
  <pre><code>var set_locale_to = function(locale) {
      if (locale) {
        $.i18n().locale = locale;
      }
      $('body').i18n();      
  };
  
  jQuery(function() {
    $.i18n().load( {
      'en': '../js/i18n/en.json',
      'ru': '../js/i18n/ru.json',
      'dk': '../js/i18n/dk.json'
    } ).done(function() {
        set_locale_to(url('?locale'));
  
        History.Adapter.bind(window, 'statechange', function(){
          set_locale_to(url('?locale'));
        });
  
        $('.switch-locale').on('click', 'a', function(e) {
          e.preventDefault();
          History.pushState(null, null, "?locale=" + $(this).data('locale'));
        });
    });
  
  });
  </code></pre>
  
  <p>Is there something that I am missing or doing wrong? I also tried to set the <code>window</code> to a fixed string, but this didn't work either. </p>