Skip to content

Commit b657b41

Browse files
committed
fix: Change translation domain name for bundle translation and add an example
1 parent 981b4e6 commit b657b41

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

bundles/best_practices.rst

+5-1
Original file line numberDiff line numberDiff line change
@@ -397,10 +397,14 @@ Translation Files
397397
-----------------
398398

399399
If a bundle provides message translations, they must be defined in the XLIFF
400-
format; the domain should be named after the bundle name (``acme_blog``).
400+
format; the domain should be named after the bundle name (``AcmeBlog``).
401401

402402
A bundle must not override existing messages from another bundle.
403403

404+
The translation domain should match the translation file names. For example,
405+
if the translation domain is ``AcmeBlog``, the English translation file name
406+
should be ``AcmeBlog.en.xlf``.
407+
404408
Configuration
405409
-------------
406410

0 commit comments

Comments
 (0)