Updated the labels for the level

This commit is contained in:
Tiago Ribeiro
2024-02-24 22:35:13 +00:00
parent efb99b31f2
commit b663e5c706
2 changed files with 13 additions and 2 deletions

View File

@@ -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"];
};