diff --git a/curriculum/getChallenges.js b/curriculum/getChallenges.js index d5a07c6f41..542ba527ec 100644 --- a/curriculum/getChallenges.js +++ b/curriculum/getChallenges.js @@ -228,9 +228,10 @@ async function buildChallenges({ path }, curriculum, lang) { async function parseTranslation(transPath, dict, lang, parse = parseMD) { const translatedChal = await parse(transPath); - // challengeType 11 is for video challenges, which have no seeds, so we skip - // them. - return translatedChal.challengeType !== 11 + const { challengeType } = translatedChal; + // challengeType 11 is for video challenges and 3 is for front-end projects + // neither of which have seeds. + return challengeType !== 11 && challengeType !== 3 ? translateCommentsInChallenge(translatedChal, lang, dict) : translatedChal; } diff --git a/tools/challenge-parser/translation-parser/index.js b/tools/challenge-parser/translation-parser/index.js index 69e2807276..a3dc49a818 100644 --- a/tools/challenge-parser/translation-parser/index.js +++ b/tools/challenge-parser/translation-parser/index.js @@ -17,7 +17,7 @@ exports.translateComments = (text, lang, dict, codeLang) => { exports.translateCommentsInChallenge = (challenge, lang, dict) => { const challClone = cloneDeep(challenge); if (!challClone.files) { - console.warn(`Challenge ${challClone.title} has no comments to translate`); + console.warn(`Challenge ${challClone.title} has no seed to translate`); } else { Object.keys(challClone.files).forEach(key => { if (challClone.files[key].contents) {