title: Change language Flask Babel manually
body: <p>I'm using Flask Babel to translate my Flask Python app.
  At moment I only have the translation mechanism by locale but what if the user besides his location wants to change the location to english? Is there any way to change the locale manually?</p>
  
  <p>This is my Flask Babel function that gets the user locale and returns the language. It is on my <strong>__init__.py</strong> file.</p>
  
  <pre><code>@babel.localeselector
  def get_locale():
      print "LANGUAGE PT"
      #return 'de' -&gt; manually change to the desired language
      request.accept_languages.best_match(LANGUAGES.keys()) 
  </code></pre>
  
  <p>I really appreciate any help! </p>
  
  <p>Best regards</p>