mirror of
https://github.com/freeCodeCamp/freeCodeCamp.git
synced 2026-05-28 18:26:54 +00:00
feat(curriculum): add i18n-curriculum submodule (#55341)
Co-authored-by: Oliver Eyton-Williams <ojeytonwilliams@gmail.com>
This commit is contained in:
@@ -6,8 +6,9 @@ const envData = require('../config/env.json');
|
||||
const {
|
||||
getChallengesForLang,
|
||||
generateChallengeCreator,
|
||||
CHALLENGES_DIR,
|
||||
ENGLISH_CHALLENGES_DIR,
|
||||
META_DIR,
|
||||
CHALLENGES_DIR,
|
||||
getChallengesDirForLang
|
||||
} = require('../../curriculum/get-challenges');
|
||||
|
||||
@@ -24,7 +25,11 @@ 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 englishPath = path.resolve(
|
||||
ENGLISH_CHALLENGES_DIR,
|
||||
'english',
|
||||
filePath
|
||||
);
|
||||
const i18nPath = path.resolve(CHALLENGES_DIR, curriculumLocale, filePath);
|
||||
// TODO: reimplement hot-reloading of certifications
|
||||
const createChallenge = generateChallengeCreator(
|
||||
|
||||
Reference in New Issue
Block a user