Simple package that allows a user to take a csv file or string of semi-colon separated values and translate them into their desired target language using the Word Reference API.
To work with this package, you'll need at the bare minimum to create a no_results.csv file and an output.csv file. You will then either need an input.csv file or to pass an option of inputFormat as a string with inputData formatted as seen below. The default option is file.
npm install word_reference_to_csv
const inputData =
';vitaminico ;potasio ;criada ;poner en marcha ;peramanzana ;bollo';
wordReferenceToCsv({
inputSourceLanguage: 'es',
outputTargetLanguage: 'en',
outputFile: '',
noResultsFile: '',
inputFormat: 'string',
inputData,
});