Skip to content

Commit f6f2e92

Browse files
fix: remove hardoced rubric
1 parent 4d45a5c commit f6f2e92

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

public/locales/bg/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -133,7 +133,7 @@
133133
"communities.challenge.criteria.subtitle": "Следните учебни материали ще ви дадат необходимата техническа експертиза, за да се справите успешно с предизвикателството.",
134134
"communities.challenge.criteria.points": "Points",
135135
"communities.challenge.passing.score.description": "За да {{coinPlaceholder}} <strong>{{amount}}</strong> <strong>{{token}}</strong>, трябва да получите поне <strong>{{minPoints}}</strong> от <strong>{{maxPoints}}</strong> точки в този предизвикателство.",
136-
"communities.challenge.hackathon.passing.score": "Трябва да получите <strong>90%</strong>, за да влезете в наградния фонд и да спечелите награди на стойност <strong>7 000 щатски долара.</strong>",
136+
"communities.challenge.hackathon.passing.score": "Трябва да получите <strong>{{threshold}}%</strong>, за да влезете в наградния фонд и да спечелите награди на стойност <strong>{{prizePool}} щатски долара.</strong>",
137137
"communities.challenge.submission": "заявка",
138138
"communities.challenge.submit": "Изпращане",
139139
"communities.challenge.feedback": "обратна връзка",

public/locales/en/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"communities.challenge.criteria.subtitle": "The following learning materials will equip you with the technical expertise required to successfully address the challenge.",
135135
"communities.challenge.criteria.points": "Points",
136136
"communities.challenge.passing.score.description": "In order to earn {{coinPlaceholder}} <strong>{{amount}}</strong> <strong>{{token}}</strong> you must get at least <strong>{{minPoints}}</strong> out of <strong>{{maxPoints}}</strong> Points in this challenge.",
137-
"communities.challenge.hackathon.passing.score": "You need to get <strong>90 points</strong> to get into the prize pool and earn prizes worth of <strong>USD 10,000</strong>. Earn some extra points through your localization's implementations.",
137+
"communities.challenge.hackathon.passing.score": "You need to get <strong>{{threshold}}%</strong> to get into the prize pool and earn prizes worth of <strong>{{prizePool}}</strong>. Earn some extra points through your localization's implementations.",
138138
"communities.challenge.submission": "Submission",
139139
"communities.challenge.submit": "Submit",
140140
"communities.challenge.feedback": "Feedback",

public/locales/es/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -134,7 +134,7 @@
134134
"communities.challenge.criteria.subtitle": "Los siguientes materiales de aprendizaje lo equiparán con la experiencia técnica necesaria para abordar con éxito el desafío.",
135135
"communities.challenge.criteria.points": "Puntos",
136136
"communities.challenge.passing.score.description": "Para ganar {{coinPlaceholder}} <strong>{{amount}}</strong> <strong>{{token}}</strong>, debes obtener al menos <strong>{{minPoints}}</strong> de <strong>{{maxPoints}}</strong> puntos en este desafío.",
137-
"communities.challenge.hackathon.passing.score": "Necesitas obtener el <strong>90%</strong> para entrar en el fondo de premios y ganar premios por un valor de <strong>USD 7,000.</strong>",
137+
"communities.challenge.hackathon.passing.score": "Necesitas obtener el <strong>{{threshold}}%</strong> para entrar en el fondo de premios y ganar premios por un valor de <strong>{{prizePool}}.</strong>",
138138
"communities.challenge.submission": "Propuesta",
139139
"communities.challenge.submit": "Entregar",
140140
"communities.challenge.feedback": "Feedback",

public/locales/hr/common.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -118,7 +118,7 @@
118118
"communities.challenge.criteria.subtitle": "Sljedeći materijali za učenje opremit će vas tehničkom stručnošću potrebnom za uspješno rješavanje izazova.",
119119
"communities.challenge.criteria.points": "bodova",
120120
"communities.challenge.passing.score.description": "U svrhu zarade {{coinPlaceholder}} <strong>{{amount}}</strong> <strong>{{token}}</strong>-ova morate osvojiti barem <strong>{{minPoints}}</strong> od <strong>{{maxPoints}}</strong> bodova u ovom izazovu.",
121-
"communities.challenge.hackathon.passing.score": "Trebate dobiti <strong>90%</strong> kako biste ušli u nagradni fond i osvojili nagrade u vrijednosti od <strong>7.000 američkih dolara.</strong>",
121+
"communities.challenge.hackathon.passing.score": "Trebate dobiti <strong>{{threshold}}%</strong> kako biste ušli u nagradni fond i osvojili nagrade u vrijednosti od <strong>{{prizePool}}</strong>",
122122
"communities.challenge.submission": "predaji zadatka",
123123
"communities.challenge.submit": "podnijeti",
124124
"communities.challenge.feedback": "povratnoj informaciji",

src/components/sections/challenges/Rubric.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default function RubricHeader({ ratingCriteria, selected, hideTitle = fal
5353
});
5454

5555
const passingScoreParts = passingScore.split("{{coinPlaceholder}}");
56-
const hackatonPassingScore = t("communities.challenge.hackathon.passing.score");
56+
const hackatonPassingScore = t("communities.challenge.hackathon.passing.score", { threshold: challenge?.threshold, prizePool: `USD ${reward?.amount}` });
5757

5858
return (
5959
<div className="text-base font-normal text-slate-700 pt-8 md:w-182.5 inline-flex flex-wrap items-center gap-1">

0 commit comments

Comments
 (0)