8000 Update translator fallback example to include ICU parents · symfony/symfony-docs@54631df · GitHub
[go: up one dir, main page]

Skip to content

Commit 54631df

Browse files
Update translator fallback example to include ICU parents
1 parent b202e64 commit 54631df

File tree

1 file changed

+8
-4
lines changed

1 file changed

+8
-4
lines changed

components/translation.rst

Lines changed: 8 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -162,12 +162,16 @@ Fallback Locales
162162

163163
If the message is not located in the catalog of the specific locale, the
164164
translator will look into the catalog of one or more fallback locales. For
165-
example, assume you're trying to translate into the ``fr_FR`` locale:
165+
example, assume you're trying to translate into the ``es_AR`` locale:
166166

167-
#. First, the translator looks for the translation in the ``fr_FR`` locale;
167+
#. First, the translator looks for the translation in the ``es_AR``
168+
(Argentinean Spanish) locale;
168169

169-
#. If it wasn't found, the translator looks for the translation in the ``fr``
170-
locale;
170+
#. If it wasn't found, the translator looks for the translation in the
171+
``es_419`` (Latin American Spanish) locale;
172+
173+
#. If it wasn't found, the translator looks for the translation in the ``es``
174+
(Spanish) locale;
171175

172176
#. If the translation still isn't found, the translator uses the one or more
173177
fallback locales set explicitly on the translator.

0 commit comments

Comments
 (0)
0