File tree Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Expand file tree Collapse file tree 1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -716,6 +716,15 @@ route::
716716 // or, in Twig
717717 // {{ path('blog_show', {'slug': 'slug-value'}) }}
718718
719+ Translating Routes
720+ ------------------
721+
722+ Symfony doesn't support defining routes with different contents depending on the
723+ user language. In those cases, you can define multiple routes per controller,
724+ one for each supported language; or use any of the bundles created by the
725+ community to implement this feature, such as `JMSI18nRoutingBundle `_ and
726+ `BeSimpleI18nRoutingBundle `_.
727+
719728Summary
720729-------
721730
@@ -743,3 +752,6 @@ Learn more about Routing
743752 :glob:
744753
745754 routing/*
755+
756+ .. _`JMSI18nRoutingBundle` : https://github.com/schmittjoh/JMSI18nRoutingBundle
757+ .. _`BeSimpleI18nRoutingBundle` : https://github.com/BeSimple/BeSimpleI18nRoutingBundle
You can’t perform that action at this time.
0 commit comments