From dd12eb5986b7a8b8ed5153a48384b11ca34efe74 Mon Sep 17 00:00:00 2001 From: Matthias Pigulla Date: Thu, 15 Jun 2023 10:47:14 +0200 Subject: [PATCH] Mention that `default_locale` is used as the default for `framework.translator.fallbacks` --- translation.rst | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/translation.rst b/translation.rst index e36fb9ff321..b368c00d7f4 100644 --- a/translation.rst +++ b/translation.rst @@ -943,6 +943,9 @@ the framework: $framework->defaultLocale('en'); }; +This ``default_locale`` is also relevant for the translator, as we will see +in the next section. + .. _translation-fallback: Fallback Translation Locales @@ -963,7 +966,8 @@ checks translation resources for several locales: (Spanish) translation resource (e.g. ``messages.es.yaml``); #. If the translation still isn't found, Symfony uses the ``fallbacks`` option, - which can be configured as follows: + which can be configured as follows. When this option is not defined, it + defaults to the ``default_locale`` setting mentioned in the previous section. .. configuration-block::