@lengoo/xliff-parser
v3.0.0
Published
Extracts and update translation units from XLIFF v1.2 files
Downloads
5
Readme
XLIFF PARSER
A parser for XLIFF version 1.2 (Legacy)
Introduction
This parser allow you to handle the translation units in an XLIFF file. It comes handy to manage translations by updating the target of translation units markers (mrk) and export the xliff content back on a simple way.
The parser will extract the whole content from the translation unit's markers as it is, including segmentation tags ['mrk', 'g', 'x', 'bx', 'ex', 'bpt', 'ept', 'ph', 'it']
.
ONLY WORKS WITH SEGMENTED SOURCES <seg-source>
.
Features
- Get all translation units markers
- Update Translation units markers
Installation
Run the following command to add xliff-parser to your project as dependency
npm install xliff-parser --save
Tests
Run the following command to execute unit tests
npm run test
Tests are made with Mocha / Chai