Skip to content

Commit acb5868

Browse files
committed
[Book][Translation] Added tip for routing params
1 parent 9fee9ee commit acb5868

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

book/translation.rst

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -422,7 +422,7 @@ via the ``request`` object::
422422

423423
.. tip::
424424

425-
Read :doc:`/cookbook/session/locale_sticky_session` to learn, how to store
425+
Read :doc:`/cookbook/session/locale_sticky_session` to learn how to store
426426
the user's locale in the session.
427427

428428
.. index::
@@ -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)