title: Routes translation with Symfony 3
body: <p>I'm trying to add translations for the defined routes in an existing Symfony 3 web application. I see that Symfony 4 already has this functionality implemented* and you can just:</p>
  
  <pre class="lang-yaml prettyprint-override"><code>foo:
    path:
      en: contact
      es: contacto
      cat: contacte
  </code></pre>
  
  <p><em>(From <a href="https://symfony.com/blog/new-in-symfony-4-1-internationalized-routing" rel="nofollow noreferrer">https://symfony.com/blog/new-in-symfony-4-1-internationalized-routing</a>)</em></p>
  
  <p>however with Symfony 3 it seems that you have to configure different route names for each locale. I would need to keep the route names the same if possible, because a lot of logic depends on the route name.</p>
  
  <p>I tried with <a href="https://github.com/schmittjoh/JMSI18nRoutingBundle" rel="nofollow noreferrer">JMSI18nRoutingBundle</a> but it seems that it's not keeping the same route names.</p>
  
  <p>Any idea to get the same route name for different locales and have them translated?</p>