Skip to content

Commit dc58086

Browse files
committed
Fix /rank ranking numbers
1 parent 796ebb2 commit dc58086

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/commands/activity/rank.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -135,14 +135,14 @@ async function computeRankForExpression(
135135
const userCount = result.count;
136136
const userPercentage = ((userCount / totalCount) * 100).toFixed(2);
137137

138-
const rankIcon = userRank === 1 ? "🥇" : userRank === 2 ? "🥈" : userRank === 3 ? "🥉" : ` ${userRank}.`;
138+
const rankIcon = userRank === 1 ? "- 1." : userRank === 2 ? "- 🥈" : userRank === 3 ? "- 🥉" : `- ${userRank}.`;
139139
return `${rankIcon} ${userName} (${userPercentage}%)`;
140140
})
141141
.join("\n");
142142

143143
const embedTitle = (
144144
translations.responses?.rankFound?.[userLocale] ??
145-
"`{number}` members have already used the expression *{expression}*"
145+
"`{number}` members have already used the expression *{expression}*."
146146
)
147147
.replace("{number}", rankResult.length.toString())
148148
.replace("{expression}", expression);

src/locales/en-US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
}
7474
},
7575
"responses": {
76-
"rankFound": "`{number}` members have already used the expression *{expression}*",
76+
"rankFound": "`{number}` members have already used the expression *{expression}*.",
7777
"rankNone": "The expression *{expression}* has never been used on this server.",
7878
"neverUseExpression": "Have never used this expression",
7979
"unregisteredUser": "Unregistered user",

src/locales/fr.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@
7373
}
7474
},
7575
"responses": {
76-
"rankFound": "`{number}` membres ont déjà utilisé l'expression *{expression}*",
76+
"rankFound": "`{number}` membres ont déjà utilisé l'expression *{expression}*.",
7777
"rankNone": "L'expression *{expression}* n'a jamais été utilisée sur ce serveur.",
7878
"neverUseExpression": "N'ont jamais utilisé cette expression",
7979
"unregisteredUser": "Utilisateur non enregistré",

0 commit comments

Comments
 (0)