Skip to content

Commit 30380e5

Browse files
committed
Added a help note about translating routes
1 parent 48db377 commit 30380e5

File tree

1 file changed

+12
-0
lines changed

1 file changed

+12
-0
lines changed

routing.rst

+12
Original file line numberDiff line numberDiff 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+
719728
Summary
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

0 commit comments

Comments
 (0)