Skip to content

Commit 5d841dd

Browse files
authored
fix spacing
1 parent 1af859b commit 5d841dd

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

translation.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -866,9 +866,11 @@ services::
866866
// (from now on, the application will use 'fr' (French) as the
867867
// locale; including the default locale used to translate Twig templates)
868868
$this->localeSwitcher->setLocale('fr');
869+
869870
// reset the current locale of your application to the configured default locale
870871
// in config/packages/translation.yaml, by option 'default_locale'
871872
$this->localeSwitcher->reset();
873+
872874
// you can also run some code with a certain locale, without
873875
// changing the locale for the rest of the application
874876
$this->localeSwitcher->runWithLocale('es', function() {

0 commit comments

Comments
 (0)