Skip to content

Commit e8345e1

Browse files
committed
Merge branch '5.4' into 6.4
* 5.4: document the translation:extract command's --prefix option
2 parents b6c481f + 44df5e8 commit e8345e1

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

translation.rst

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -476,6 +476,15 @@ The ``translation:extract`` command looks for missing translations in:
476476

477477
The AST parser support was introduced in Symfony 6.2.
478478

479+
By default, when the ``translation:extract`` command creates new entries in the
480+
translation file, it uses the same content as both the source and the pending
481+
translation. The only difference is that the pending translation is prefixed by
482+
``__``. You can customize this prefix using the ``--prefix`` option:
483+
484+
.. code-block:: terminal
485+
486+
$ php bin/console translation:extract --force --prefix="NEW_" fr
487+
479488
.. _translation-resource-locations:
480489

481490
Translation Resource/File Names and Locations

0 commit comments

Comments
 (0)