In the case you are given an XLIFF file from your translation service and would like to convert it to resource files that can be utilized by your javascript application utilizing i18next.
The following piece of javascript can be used as a build step for your node project. In my case it runs in a react application and is set to run with the command npm run build:resources by adding build:resources to the script secion of our project's package.json. This utilizes and follows file location conventions from the i18next-http-backend library.
const fs = require('fs');
const xliff = require('xliff')