Skip to content

Commit f9c2d69

Browse files
committed
minor #4803 [Book][Translation] Added tip for routing params (xelaris)
This PR was merged into the 2.3 branch. Discussion ---------- [Book][Translation] Added tip for routing params | Q | A | ------------- | --- | Doc fix? | no | New docs? | no | Applies to | 2.3+ | Fixed tickets | Commits ------- acb5868 [Book][Translation] Added tip for routing params
2 parents 3774a37 + acb5868 commit f9c2d69

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)