Skip to content

Commit d918b03

Browse files
committed
[Book][Translation] Added tip for routing params
1 parent 236c26f commit d918b03

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

book/translation.rst

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -502,6 +502,11 @@ as the locale for the current request.
502502
You can now use the locale to create routes to other translated pages
503503
in your application.
504504

505+
.. tip::
506+
507+
Read :doc:`/cookbook/routing/service_container_parameters` to learn, how to
508+
avoid hardcoding the ``_locale`` requirement in all your routes.
509+
505510
Setting a default Locale
506511
~~~~~~~~~~~~~~~~~~~~~~~~
507512

0 commit comments

Comments
 (0)