Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
fs.readFile(translationsFilePath, (err, data) =>
{
if(err) return console.log(`Cast to TV: error reading node ${locale} translation`);
var parsedTranslations = moParser.parse(data);
gt.addTranslations(locale, domain, parsedTranslations);
});
});