function writeToFileRESJSON()

in scripts/extractStrings.js [329:343]


function writeToFileRESJSON(data, fileName, fileType, outputPath) {
  var fullPath = outputPath;
  if (fileType === LocalizableFileType.Gallery) {
    fullPath = fullPath.concat("\\", fileName.replace(".json", ""));
  }

  fullpath = fullPath.concat(ResJsonStringFileExtension);

  const content = JSON.stringify(data, null, "\t");
  if (content.localeCompare("{}") === 0) {
    logMessage("No strings found for: " + fullpath);
    return;
  }
  writeJSONToFile(content, fullpath, true)
}