php bin/console lint:xliff
Lint an XLIFF file and outputs encountered errors
Usage
lint:xliff [--format FORMAT] [--] [<filename>...]
Arguments
filename A file, a directory or "-" for reading from STDIN
Options
--format The output format ("txt", "json", "github")
Help
The lint:xliff command lints an XLIFF file and outputs to STDOUT
the first encountered syntax error.
You can validates XLIFF contents passed from STDIN:
cat filename | php bin/console lint:xliff -
You can also validate the syntax of a file:
php bin/console lint:xliff filename
Or of a whole directory:
php bin/console lint:xliff dirname
php bin/console lint:xliff dirname --format=json