File tree Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Expand file tree Collapse file tree 2 files changed +12
-11
lines changed Original file line number Diff line number Diff line change @@ -354,10 +354,10 @@ with these tasks:
354
354
.. code-block :: terminal
355
355
356
356
# updates the French translation file with the missing strings found in app/Resources/ templates
357
- $ ./ bin/console translation:update --dump-messages --force fr
357
+ $ php bin/console translation:update --dump-messages --force fr
358
358
359
359
# updates the English translation file with the missing strings found in AppBundle
360
- $ ./ bin/console translation:update --dump-messages --force en AppBundle
360
+ $ php bin/console translation:update --dump-messages --force en AppBundle
361
361
362
362
.. note ::
363
363
Original file line number Diff line number Diff line change @@ -15,23 +15,24 @@ translation file using the ``lint:yaml`` and ``lint:xliff`` commands:
15
15
.. code-block :: terminal
16
16
17
17
# lint a single file
18
- $ ./ bin/console lint:yaml translations/messages.en.yaml
19
- $ ./ bin/console lint:xliff translations/messages.en.xlf
18
+ $ php bin/console lint:yaml translations/messages.en.yaml
19
+ $ php bin/console lint:xliff translations/messages.en.xlf
20
20
21
21
# lint a whole directory
22
- $ ./ bin/console lint:yaml translations
23
- $ ./ bin/console lint:xliff translations
24
-
22
+ $ php bin/console lint:yaml translations
23
+ $ php bin/console lint:xliff translations
24
+
25
25
# lint multiple files or directories
26
- $ ./ bin/console lint:yaml translations path/to/trans
27
- $ ./ bin/console lint:xliff translations/messages.en.xlf translations/messages.es.xlf
26
+ $ php bin/console lint:yaml translations path/to/trans
27
+ $ php bin/console lint:xliff translations/messages.en.xlf translations/messages.es.xlf
28
28
29
29
.. versionadded :: 4.2
30
+
30
31
The feature to lint multiple files and directories was introduced in Symfony 4.2.
31
32
32
33
The linter results can be exported to JSON using the ``--format `` option:
33
34
34
35
.. code-block :: terminal
35
36
36
- $ ./ bin/console lint:yaml translations/ --format=json
37
- $ ./ bin/console lint:xliff translations/ --format=json
37
+ $ php bin/console lint:yaml translations/ --format=json
38
+ $ php bin/console lint:xliff translations/ --format=json
You can’t perform that action at this time.
0 commit comments