diff --git a/generate_translations.mjs b/generate_translations.mjs index b6a739d..36fdc84 100644 --- a/generate_translations.mjs +++ b/generate_translations.mjs @@ -13,7 +13,8 @@ fs.mkdirSync(outDir, { recursive: true }); // Write the stats file try { const stats = JSON.parse(fs.readFileSync(statsFile, "utf8")); - const recommended_domains = fs.readFileSync(recommendationsFile, "utf8").split(','); + const recommended_domains = fs.readFileSync(recommendationsFile, "utf8").trim().split(','); + console.log(recommended_domains); const recommended = stats.instance_details.filter(i => recommended_domains.includes(i.domain) );