@grace-studio/json-to-xliff
v0.2.0
Published
[![npm version](https://badge.fury.io/js/@grace-studio%2Fjson-to-xliff.svg)](https://www.npmjs.com/package/@grace-studio/json-to-xliff)
Downloads
6
Readme
@grace-studio/json-to-xliff
The JSON to XLIFF converter tool currently supports XLIFF version 1.2.
Installation
To install the JSON to XLIFF converter tool for global access, you can use either npm or yarn:
npm i -g @grace-studio/json-to-xliff
# or
yarn global add @grace-studio/json-to-xliff
Usage
To convert a JSON file to XLIFF:
json-to-xliff toXliff \
--file <input-json-file> \
--out <output-xliff-file> \
--lang <language-code> \
To convert a XLIFF file to JSON:
json-to-xliff toJson \
--file <input-xliff-file> \
--out <output-json-file>