File tree Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Expand file tree Collapse file tree 1 file changed +9
-0
lines changed Original file line number Diff line number Diff line change @@ -460,6 +460,15 @@ The ``translation:extract`` command looks for missing translations in:
460
460
Support for extracting Translatable objects has been introduced in
461
461
Symfony 5.3.
462
462
463
+ By default, when the ``translation:extract `` command creates new entries in the
464
+ translation file, it uses the same content as both the source and the pending
465
+ translation. The only difference is that the pending translation is prefixed by
466
+ ``__ ``. You can customize this prefix using the ``--prefix `` option:
467
+
468
+ .. code-block :: terminal
469
+
470
+ $ php bin/console translation:extract --force --prefix="NEW_" fr
471
+
463
472
.. _translation-resource-locations :
464
473
465
474
Translation Resource/File Names and Locations
You can’t perform that action at this time.
0 commit comments