Skip to content

[Translator] Adding more information about default translation domain 'messages' #14421

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
Oct 21, 2020
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
7 changes: 5 additions & 2 deletions translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -655,9 +655,12 @@ priority message files.
The filename of the translation files is also important: each message file
must be named according to the following path: ``domain.locale.loader``:

* **domain**: An optional way to organize messages into groups. Unless
* **domain**: Domains are a way to organize messages into groups. Unless
parts of the application are explicitly separated from each other, it is
recommended to only use default ``messages`` domain;
recommended to only use default ``messages`` domain.

If no domains are explicitly defined while using the translator, Symfony
will default to the ``messages`` domain (e.g. ``messages.en.yaml``)

* **locale**: The locale that the translations are for (e.g. ``en_GB``, ``en``, etc);

Expand Down