Skip to content

Commit ac5b1e5

Browse files
committed
🔧 Fix categories labels for statistics
1 parent 0fc94cf commit ac5b1e5

File tree

2 files changed

+9
-17
lines changed

2 files changed

+9
-17
lines changed

i18n/fr.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -202,7 +202,7 @@ export default {
202202
Practices: "Ajoute des compétences dans la grille Pratiques",
203203
Activities: "Ajoute des compétences dans la grille Activités",
204204
Knowledge: "Ajoute des compétences dans la grille Connaissances",
205-
Postures: "Ajoute des compétences dans la grille Postures",
205+
Behaviors: "Ajoute des compétences dans la grille Postures",
206206
Profile: "Compléter son profil",
207207
},
208208
},

src/components/profile/statistics/Statistics.tsx

Lines changed: 8 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -37,47 +37,39 @@ export const Statistics = ({
3737
themeToCompare="practices"
3838
datas={userAchievements}
3939
src="/img/badges/badge.svg"
40-
titleSubobjective={t(
41-
"statistics.subobjectivesTitles.LanguageAndFrameworks"
42-
)}
40+
titleSubobjective={t("statistics.subobjectivesTitles.Practices")}
4341
descriptionSubobjective={
44-
myStatistics
45-
? t("statistics.subobjectivesLegends.LanguageAndFrameworks")
46-
: ""
42+
myStatistics ? t("statistics.subobjectivesLegends.Practices") : ""
4743
}
4844
countSkills={filterCountSkills("practices")}
4945
/>
5046
<BadgeSubojectivesCategoryCompletion
5147
themeToCompare="activities"
5248
datas={userAchievements}
5349
src="/img/badges/badge.svg"
54-
titleSubobjective={t("statistics.subobjectivesTitles.Plateform")}
50+
titleSubobjective={t("statistics.subobjectivesTitles.Activities")}
5551
descriptionSubobjective={
56-
myStatistics ? t("statistics.subobjectivesLegends.Plateform") : ""
52+
myStatistics ? t("statistics.subobjectivesLegends.Activities") : ""
5753
}
5854
countSkills={filterCountSkills("activities")}
5955
/>
6056
<BadgeSubojectivesCategoryCompletion
6157
themeToCompare="knowledge"
6258
datas={userAchievements}
6359
src="/img/badges/badge.svg"
64-
titleSubobjective={t("statistics.subobjectivesTitles.Tools")}
60+
titleSubobjective={t("statistics.subobjectivesTitles.Knowledge")}
6561
descriptionSubobjective={
66-
myStatistics ? t("statistics.subobjectivesLegends.Tools") : ""
62+
myStatistics ? t("statistics.subobjectivesLegends.Knowledge") : ""
6763
}
6864
countSkills={filterCountSkills("knowledge")}
6965
/>
7066
<BadgeSubojectivesCategoryCompletion
7167
themeToCompare="behaviors"
7268
datas={userAchievements}
7369
src="/img/badges/badge.svg"
74-
titleSubobjective={t(
75-
"statistics.subobjectivesTitles.TechnicsAndMethod"
76-
)}
70+
titleSubobjective={t("statistics.subobjectivesTitles.Behaviors")}
7771
descriptionSubobjective={
78-
myStatistics
79-
? t("statistics.subobjectivesLegends.TechnicsAndMethod")
80-
: ""
72+
myStatistics ? t("statistics.subobjectivesLegends.Behaviors") : ""
8173
}
8274
countSkills={filterCountSkills("behaviors")}
8375
/>

0 commit comments

Comments
 (0)