We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1af859b commit 5d841ddCopy full SHA for 5d841dd
translation.rst
@@ -866,9 +866,11 @@ services::
866
// (from now on, the application will use 'fr' (French) as the
867
// locale; including the default locale used to translate Twig templates)
868
$this->localeSwitcher->setLocale('fr');
869
+
870
// reset the current locale of your application to the configured default locale
871
// in config/packages/translation.yaml, by option 'default_locale'
872
$this->localeSwitcher->reset();
873
874
// you can also run some code with a certain locale, without
875
// changing the locale for the rest of the application
876
$this->localeSwitcher->runWithLocale('es', function() {
0 commit comments