File tree 1 file changed +12
-0
lines changed
1 file changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -716,6 +716,15 @@ route::
716
716
// or, in Twig
717
717
// {{ path('blog_show', {'slug': 'slug-value'}) }}
718
718
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
+
719
728
Summary
720
729
-------
721
730
@@ -743,3 +752,6 @@ Learn more about Routing
743
752
:glob:
744
753
745
754
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