This project is an example of how to use TypesXLIFF to validate XLIFF files from a command-line interface (CLI).
npm install -g xliff-validationThen run:
xliffvalidator -xliff <path-to-file.xlf>git clone https://github.com/maxprograms-com/xliff-validation.git
cd xliff-validation
npm install
npm run buildThen run:
./dist/xliffvalidator.js -xliff <path-to-file.xlf>Run the validator with:
xliffvalidator -xliff <path-to-file.xlf>Use a custom catalog file (optional):
xliffvalidator -xliff <path-to-file.xlf> -catalog <path-to-catalog.xml>For help:
xliffvalidator -helpOutput:
Usage:
xliffvalidator -xliff <file> [-catalog <file>] [-help]
Options:
-xliff <file> Path to the XLIFF file to validate (required)
-catalog <file> (optional) Path to a custom catalog file
-help (optional) Show this help message and exit