fix(api): use English slugs for all challenges
This commit is contained in:
committed by
Mrugesh Mohapatra
parent
28d3319ba7
commit
412938890a
@ -10,9 +10,9 @@ import { getChallengesForLang } from '../../../curriculum/getChallenges';
|
||||
|
||||
let curriculum;
|
||||
export async function getCurriculum() {
|
||||
curriculum = curriculum
|
||||
? curriculum
|
||||
: getChallengesForLang(process.env.CURRICULUM_LOCALE);
|
||||
// NOTE: this is always 'english' because we are only interested in the slugs
|
||||
// and those should not change between the languages.
|
||||
curriculum = curriculum ? curriculum : getChallengesForLang('english');
|
||||
return curriculum;
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user