MCPcopy Create free account
hub / github.com/freeCodeCamp/freeCodeCamp / getContentDir

Function getContentDir

curriculum/src/file-handler.ts:99–103  ·  view source on GitHub ↗
(lang: string)

Source from the content-addressed store, hash-verified

97 * @returns {string} Path to the content directory for the specified language
98 */
99export function getContentDir(lang: string) {
100 const { contentDir, i18nContentDir } = getContentConfig(lang);
101
102 return lang === 'english' ? contentDir : i18nContentDir;
103}
104
105export function getCurriculumStructure() {
106 const curriculumPath = resolve(STRUCTURE_DIR, 'curriculum.json');

Callers 4

buildCurriculumFunction · 0.85

Calls 1

getContentConfigFunction · 0.85

Tested by

no test coverage detected