File tree 1 file changed +11
-0
lines changed
1 file changed +11
-0
lines changed Original file line number Diff line number Diff line change @@ -457,6 +457,16 @@ The ``translation:extract`` command looks for missing translations in:
457
457
* Any PHP file/class stored in the ``src/ `` directory that uses
458
458
:ref: `Constraints Attributes <validation-constraints >` with ``*message `` named argument(s).
459
459
460
+ .. tip ::
461
+
462
+ Install the ``nikic/php-parser `` package in your project to improve the
463
+ results of the ``translation:extract `` command. This package enables an
464
+ `AST `_ parser that can find many more translatable items:
465
+
466
+ .. code-block :: terminal
467
+
468
+ $ composer require nikic/php-parser
469
+
460
470
.. _translation-resource-locations :
461
471
462
472
Translation Resource/File Names and Locations
@@ -1563,3 +1573,4 @@ Learn more
1563
1573
.. _`Loco (localise.biz)` : https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Translation/Bridge/Loco/README.md
1564
1574
.. _`Lokalise` : https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Translation/Bridge/Lokalise/README.md
1565
1575
.. _`Phrase` : https://github.com/symfony/symfony/blob/{version}/src/Symfony/Component/Translation/Bridge/Phrase/README.md
1576
+ .. _`AST` : https://en.wikipedia.org/wiki/Abstract_syntax_tree
You can’t perform that action at this time.
0 commit comments