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;
|
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;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user