Skip to content

Commit

Permalink
minor #20360 [Translation] document the translation:extract command's…
Browse files Browse the repository at this point in the history
… --prefix option (xabbuh)

This PR was merged into the 5.4 branch.

Discussion
----------

[Translation] document the translation:extract command's --prefix option

backport from #20352

Commits
-------

942396b document the translation:extract command's --prefix option
  • Loading branch information
javiereguiluz committed Oct 30, 2024
2 parents 304f14d + 942396b commit 44df5e8
Showing 1 changed file with 9 additions and 0 deletions.
9 changes: 9 additions & 0 deletions translation.rst
Original file line number Diff line number Diff line change
Expand Up @@ -460,6 +460,15 @@ The ``translation:extract`` command looks for missing translations in:
Support for extracting Translatable objects has been introduced in
Symfony 5.3.

By default, when the ``translation:extract`` command creates new entries in the
translation file, it uses the same content as both the source and the pending
translation. The only difference is that the pending translation is prefixed by
``__``. You can customize this prefix using the ``--prefix`` option:

.. code-block:: terminal
$ php bin/console translation:extract --force --prefix="NEW_" fr
.. _translation-resource-locations:

Translation Resource/File Names and Locations
Expand Down

0 comments on commit 44df5e8

Please sign in to comment.