diff --git a/routing.rst b/routing.rst index f66caca3ca8..5b7a926748b 100644 --- a/routing.rst +++ b/routing.rst @@ -716,6 +716,15 @@ route:: // or, in Twig // {{ path('blog_show', {'slug': 'slug-value'}) }} +Translating Routes +------------------ + +Symfony doesn't support defining routes with different contents depending on the +user language. In those cases, you can define multiple routes per controller, +one for each supported language; or use any of the bundles created by the +community to implement this feature, such as `JMSI18nRoutingBundle`_ and +`BeSimpleI18nRoutingBundle`_. + Summary ------- @@ -743,3 +752,6 @@ Learn more about Routing :glob: routing/* + +.. _`JMSI18nRoutingBundle`: https://github.com/schmittjoh/JMSI18nRoutingBundle +.. _`BeSimpleI18nRoutingBundle`: https://github.com/BeSimple/BeSimpleI18nRoutingBundle