Skip to content

Commit 4c023af

Browse files
kbondwouterj
andcommitted
Apply suggestions from code review
Co-authored-by: Wouter de Jong <wouterj@users.noreply.github.com>
1 parent b51e269 commit 4c023af

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

translation.rst

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -839,12 +839,12 @@ just to run some code. Imagine a console command that renders Twig templates
839839
of emails in different languages. You need to change the locale only to
840840
render those templates.
841841

842-
The ``LocaleSwitcher`` object/service allows you to change at once the locale
842+
The ``LocaleSwitcher`` class allows you to change at once the locale
843843
of:
844844

845-
1. All the services that are tagged with ``kernel.locale_aware``.
846-
2. ``\Locale::setDefault()``.
847-
3. If a request is available, the ``_locale`` request attribute.
845+
* All the services that are tagged with ``kernel.locale_aware``;
846+
* ``\Locale::setDefault()``;
847+
* If a request is available, the ``_locale`` request attribute.
848848

849849
The ``LocaleSwitcher`` service is autowireable and can be injected into other
850850
services::

0 commit comments

Comments
 (0)