Skip to content

maxprograms-com/xliff-validation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

11 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

xliff-validation

This project is an example of how to use TypesXLIFF to validate XLIFF files from a command-line interface (CLI).

Installation

Option 1: Install globally with npm

npm install -g xliff-validation

Then run:

xliffvalidator -xliff <path-to-file.xlf>

Option 2: Clone and build from source

git clone https://github.com/maxprograms-com/xliff-validation.git
cd xliff-validation
npm install
npm run build

Then run:

./dist/xliffvalidator.js -xliff <path-to-file.xlf>

Usage

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 -help

Output:

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

Releases

No releases published

Packages

 
 
 

Contributors