title: AngularJS multilanguage routing
body: <p>I have an AngularJS webapp. I´m changing the application so the URLs can be multilanguage (for SEO indexing purposes).</p>
  
  <p>I´m setting up my app.js, like this:</p>
  
  <pre><code>$routeProvider.when('/:language', {templateUrl: 'partials/home.html', controller: 'HomeCtrl'});     
      $routeProvider.when('/:language/about', {templateUrl: 'partials/about.html', controller: 'AboutCtrl'});
  </code></pre>
  
  <p>Then, in a service I get the language parameter with $routeParams and call my translation code with angular-translate to serve the page in the corresponding language.</p>
  
  <p>Everything is working so far. </p>
  
  <p>But, moreover, in the menu bar, I have a select combo box to choose the language. So, when user change the language, the url language parameter should change.</p>
  
  <p>How should I do this?</p>