in scripts/extractStrings.js [113:127]
function generateOutputPath(dir) {
var outputPath;
if (dir.includes(CohortsTemplateFolder)) {
outputPath = dir.replace(CohortsTemplateFolder, RESJSONOutputFolder);
} else if (dir.includes(GalleryFolder)) {
outputPath = dir.replace(GalleryFolder, RESJSONOutputFolder.concat("gallery"));
} else {
outputPath = dir.replace(WorkbookTemplateFolder, RESJSONOutputFolder);
}
if (!fs.existsSync(outputPath)) {
const directoryPath = getDirectoryFromPath(outputPath);
fs.mkdirSync(directoryPath, { recursive: true });
}
return outputPath;
}