The JSON to XLIFF converter tool currently supports XLIFF version 1.2.
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
To convert a JSON file to XLIFF:
json-to-xliff toXliff \
--file <input-json-file> \
--out <output-xliff-file> \
--lang <source-language-code> \
--target <target-language-code> \
To convert a XLIFF file to JSON:
json-to-xliff toJson \
--file <input-xliff-file> \
--out <output-json-file> \