diff --git a/client/utils/build-challenges.js b/client/utils/build-challenges.js index df5c5c4d7628335..44f122f4c34abe2 100644 --- a/client/utils/build-challenges.js +++ b/client/utils/build-challenges.js @@ -24,16 +24,18 @@ exports.replaceChallengeNode = () => { const metaPath = path.resolve(META_DIR, `${blockName}/meta.json`); delete require.cache[require.resolve(metaPath)]; const meta = require(metaPath); + const englishPath = path.resolve(CHALLENGES_DIR, 'english', filePath); + const i18nPath = path.resolve(CHALLENGES_DIR, curriculumLocale, filePath); // TODO: reimplement hot-reloading of certifications + const createChallenge = generateChallengeCreator( + curriculumLocale, + englishPath, + i18nPath + ); return await createChallenge(filePath, meta); }; }; -const createChallenge = generateChallengeCreator( - CHALLENGES_DIR, - curriculumLocale -); - exports.buildChallenges = async function buildChallenges() { const curriculum = await getChallengesForLang(curriculumLocale); const superBlocks = Object.keys(curriculum);