mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-05-06 05:07:36 -05:00
Different badge text if XP badge
This commit is contained in:
parent
575d285ee4
commit
014c71a748
|
|
@ -104,6 +104,9 @@ export function badgeExplanationText(
|
|||
if (badge.code === "patreon_plus") {
|
||||
return t("patreon+");
|
||||
}
|
||||
if (badge.code.startsWith("xp")) {
|
||||
return t("xp", { xpText: badge.displayName });
|
||||
}
|
||||
|
||||
return t("tournament", {
|
||||
count: badge.count ?? 1,
|
||||
|
|
|
|||
|
|
@ -1,6 +1,7 @@
|
|||
{
|
||||
"patreon": "Supporter of sendou.ink on Patreon",
|
||||
"patreon+": "Supporter+ of sendou.ink on Patreon",
|
||||
"xp": "Awarded for reaching {{xpText}}",
|
||||
"tournament_one": "Awarded for winning {{tournament}}",
|
||||
"tournament_other": "Awarded for winning {{tournament}} (×{{count}})",
|
||||
"forYourEvent": "Badge for your event?",
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user