8000 minor #10368 [Translation] Added support for multiple files or direct… · symfony/symfony-docs@c63cd6c · GitHub
[go: up one dir, main page]

Skip to content

Commit c63cd6c

Browse files
committed
minor #10368 [Translation] Added support for multiple files or directories in XliffLintCommand (yceruto, javiereguiluz)
This PR was merged into the master branch. Discussion ---------- [Translation] Added support for multiple files or directories in XliffLintCommand See symfony/symfony#28522 Commits ------- e4494bd Added the versionadded directive e68d242 typo 5657303 Added support for multiple files or directories
2 parents 16c0ee7 + e4494bd commit c63cd6c

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

translation/lint.rst

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,13 @@ translation file using the ``lint:yaml`` and ``lint:xliff`` commands:
2121
# lint a whole directory
2222
$ ./bin/console lint:yaml translations
2323
$ ./bin/console lint:xliff translations
24+
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
28+
29+
.. versionadded:: 4.2
30+
The feature to lint multiple files and directories was introduced in Symfony 4.2.
2431

2532
The linter results can be exported to JSON using the ``--format`` option:
2633

0 commit comments

Comments
 (0)
0