fix(api): use English slugs for all challenges

This commit is contained in:
Oliver Eyton-Williams
2020-12-16 15:29:33 +01:00
committed by Mrugesh Mohapatra
parent 28d3319ba7
commit 412938890a

View File

@ -10,9 +10,9 @@ import { getChallengesForLang } from '../../../curriculum/getChallenges';
let curriculum; let curriculum;
export async function getCurriculum() { export async function getCurriculum() {
curriculum = curriculum // NOTE: this is always 'english' because we are only interested in the slugs
? curriculum // and those should not change between the languages.
: getChallengesForLang(process.env.CURRICULUM_LOCALE); curriculum = curriculum ? curriculum : getChallengesForLang('english');
return curriculum; return curriculum;
} }