Automatically converts XLIFF files to JSON files!
Note that this is designed around Angular translation files made by the Internationalization process.
npm install -g xliff-to-json
xliff-to-json [directory or file]
If no directory or file is specified, the current directory will be used.
- Clone the repository by running
git clone https://github.com/Tzahi12345/xliff-to-json.git
- Run
cd xliff-to-json
and typenpm install
to get all the required dependencies. - You're all good to go! See Usage down below to convert your files.
node app.js [directory or file]
Files will output in the same directory as the input files.
If your output files do not appear, make sure your input XLIFF does not contain any <group>
tags. If it does, remove them and try again!