Skip to content

[Translation] Mention that default_locale is used as the default for framework.translator.fallbacks #18417

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jun 20, 2023
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 5 additions & 1 deletion translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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::

Expand Down