mirror of
https://github.com/Sendouc/sendou.ink.git
synced 2026-08-23 11:36:19 -05:00
Different badge text if XP badge
This commit is contained in:
@@ -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?",
|
||||
|
||||
Reference in New Issue
Block a user