php bin/console lint:xliff

Lints a 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 

Help

The lint:xliff command lints a 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

Or find all files in a bundle:

  php bin/console lint:xliff @AcmeDemoBundle