10000 Merge branch '5.4' into 6.2 · symfony/symfony-docs@733a3a9 · GitHub
[go: up one dir, main page]

Skip to content

Commit 733a3a9

Browse files
committed
Merge branch '5.4' into 6.2
* 5.4: Mention that `default_locale` is used as the default for `framework.translator.fallbacks`
2 parents 79a4421 + f5adf55 commit 733a3a9

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

translation.rst

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -918,6 +918,9 @@ the framework:
918918
$framework->defaultLocale('en');
919919
};
920920
921+
This ``default_locale`` is also relevant for the translator, as we will see
922+
in the next section.
923+
921924
.. _translation-fallback:
922925

923926
Fallback Translation Locales
@@ -938,7 +941,8 @@ checks translation resources for several locales:
938941
(Spanish) translation resource (e.g. ``messages.es.yaml``);
939942

940943
#. If the translation still isn't found, Symfony uses the ``fallbacks`` option,
941-
which can be configured as follows:
944+
which can be configured as follows. When this option is not defined, it
945+
defaults to the ``default_locale`` setting mentioned in the previous section.
942946

943947
.. configuration-block::
944948

0 commit comments

Comments
 (0)
0