title: Can JMSI18nRoutingBundle use HTTP Accept-Language array?
body: <p>I'm trying to do an internationalized website, with an URL prefix for each language I translated (eg. <code>/fr/my/page</code> or <code>/it/my/page</code>).</p>
  
  <p>I tried JMSI18nRoutingBundle and it works pretty good with almost no additional configuration. But I really want to determine automatically the user preferred language.
  The user's favorite languages are transmitted into the <code>Accept-Language</code> HTTP header, and I want to choose the first language I have a translation for.</p>
  
  <p>Here is my JMSI18nRouting config:</p>
  
  <pre><code>jms_i18n_routing:
      default_locale: en
      locales: [fr, en]
      strategy: prefix_except_default
  </code></pre>
  
  <p>I want this type of behaviour:</p>
  
  <p><code>http://mywebsite.com/my/page</code> do an automatic language detection then a redirection to <code>/xx/...</code> (where <code>xx</code> is the user favorite language) because language is not specified in URL — Presently the default language is EN.</p>
  
  <p><code>http://mywebsite.com/XX/my/page</code> shows the page in XX language — Presently, works fine.</p>
  
  <p>Any idea to do this ? Is the config OK ?</p>
  
  <p>Oh, and, if anyone has a solution to do the same thing in pure Symfony (without JMSI18nRoutingBundle), my ears are widely open.</p>
  
  <p><strong>EDIT / Found a way to have intelligent redirections with JMSI18nRoutingBundle to respect user's favorite language or let user force the display of a language. See my <a href="https://stackoverflow.com/questions/27537513/can-jmsi18nroutingbundle-use-http-accept-language-array/27560646#answer-27581192">answer</a>.</strong></p>