Skip to content

Commit 7ccf603

Browse files
Reworded and added the versionadded directive
1 parent 54631df commit 7ccf603

File tree

1 file changed

+6
-2
lines changed

1 file changed

+6
-2
lines changed

components/translation.rst

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -167,15 +167,19 @@ example, assume you're trying to translate into the ``es_AR`` locale:
167167
#. First, the translator looks for the translation in the ``es_AR``
168168
(Argentinean Spanish) locale;
169169

170-
#. If it wasn't found, the translator looks for the translation in the
171-
``es_419`` (Latin American Spanish) locale;
170+
#. If it wasn't found, the translator looks for the translation in the parent
171+
locale, which is automatically defined only for some locales. In this
172+
example, the parent locale is ``es_419`` (Latin American Spanish);
172173

173174
#. If it wasn't found, the translator looks for the translation in the ``es``
174175
(Spanish) locale;
175176

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

180+
.. versionadded:: 4.2
181+
The use of parent locales was introduced in Symfony 4.2.
182+
179183
For (3), the fallback locales can be set by calling
180184
:method:`Symfony\\Component\\Translation\\Translator::setFallbackLocales`::
181185

0 commit comments

Comments
 (0)