title: how to change the bootstrap carousel direction
body: <p>I am using the following js code to change the direction of bootstrap carousel to 'ltr' in Arabic language. I need to change the direction of carousel to 'ltr' but the following js code is not working properly.</p>
  
  <p>Is there anyone who will debug this problem.</p>
  
  <p>JQuery</p>
  
  <pre><code>var theLanguage = $('html').attr('lang');
  if(theLanguage == 'en') {
  
      $('.carousel').carousel({
          direction:'left',
      });
  }
  
  else{
  
      $('.carousel').carousel({
          direction:'right',
      })
  }
  </code></pre>