Updated the labels for the level
This commit is contained in:
@@ -163,3 +163,14 @@ export const getLevelScore = (level: number) => {
|
||||
return [];
|
||||
}
|
||||
};
|
||||
|
||||
export const getLevelLabel = (level: number) => {
|
||||
if (level < 2) return ["Foundation", "Pre-A1"];
|
||||
if (level < 4) return ["Elementary", "A1"];
|
||||
if (level < 5) return ["Pre-intermediate", "A2"];
|
||||
if (level < 6) return ["Intermediate", "B1"];
|
||||
if (level < 7) return ["Upper Intermediate", "B2"];
|
||||
if (level < 8) return ["Advanced", "C1"];
|
||||
|
||||
return ["Proficiency", "C2"];
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user