Skip to content

Commit 08448e9

Browse files
committedApr 1, 2025
minor #20652 Explain how translation messages are merged among bundles (mpdude)
This PR was merged into the 6.4 branch. Discussion ---------- Explain how translation messages are merged among bundles This adds a detail about how messages are merged when more than one bundle provides a translation for a single message key. Commits ------- ac4a5f7 Explain how translation messages are merged among bundles
2 parents 8d35db9 + ac4a5f7 commit 08448e9

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed
 

‎translation.rst

+3-1
Original file line numberDiff line numberDiff line change
@@ -497,7 +497,9 @@ Symfony looks for message files (i.e. translations) in the following default loc
497497
``Resources/translations/`` directory, which is no longer recommended for bundles).
498498

499499
The locations are listed here with the highest priority first. That is, you can
500-
override the translation messages of a bundle in the first directory.
500+
override the translation messages of a bundle in the first directory. Bundles are processed
501+
in the order they are given in the ``config/bundles.php`` file, so bundles listed first have
502+
higher priority.
501503

502504
The override mechanism works at a key level: only the overridden keys need
503505
to be listed in a higher priority message file. When a key is not found

0 commit comments

Comments
 (0)
Please sign in to comment.