xliff-parser

1.2.0 • Public • Published

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

/xliff-parser/

    Package Sidebar

    Install

    npm i xliff-parser

    Weekly Downloads

    106

    Version

    1.2.0

    License

    MIT

    Unpacked Size

    10.9 kB

    Total Files

    6

    Last publish

    Collaborators

    • daemyn