title: Can't return to default language with Google Translate in javascript
body: <p>i have a code uses google-translate and jquery.cookie to translate all page to other language:</p>
  
  <pre><code>$(document).ready(function () {
      var googTrans = $.cookie('googtrans');
  
      if (googTrans === '/es/en') { //Paint specific flag
          var src = $('.lang-change img').attr('src').replace('flag_en.png', 'flag_es.gif');
          $('.lang-change img').attr('src', src);
          $('#lang-change-en').attr('id', 'lang-change-es');
      }
  
      $(".lang-change").on("click",function(){
          if (googTrans == '/es/en') { //If language is english return to spanish
              $.removeCookie('googtrans',{path:'', domain: 'domain.es'});
              $.removeCookie('googtrans',{path:'', domain: '.domain.es'});
              location.reload();
          }else{ //Convert to english
              $.cookie('googtrans','/es/en',{path:''});
              location.reload();
          }
      });
  });
  
  //Google provides this function
  function googleTranslateElementInit() {
      new google.translate.TranslateElement({
          pageLanguage: 'es',
          includedLanguages: 'en',
          layout: google.translate.TranslateElement.InlineLayout.SIMPLE,
          autoDisplay: false
      }, 'google_translate_element');
  }
  </code></pre>
  
  <p>googtrans cookie set me as a session:</p>
  
  <p><a href="https://i.stack.imgur.com/lnYuX.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/lnYuX.png" alt="enter image description here"></a></p>
  
  <p>i cant delete this cookie and return to my original language</p>