fix: Missed localisations.

This commit is contained in:
2023-06-09 06:17:48 +03:00
parent 7c039dd0da
commit 73a99d7a3d
3 changed files with 90 additions and 15 deletions

View File

@@ -211,11 +211,18 @@ class ProfileUI(StatsUI):
async def stats_button_refresh(self):
button = self.stats_button
t = self.bot.translator.t
if self._showing_stats:
button.label = "Hide Statistics"
button.label = t(_p(
'ui:profile_card|button:statistics|label:hide',
"Hide Statistics"
))
else:
button.label = "Show Statistics"
button.label = t(_p(
'ui:profile_card|button:statistics|label:show',
"Show Statistics"
))
@button(label="Global Stats", style=ButtonStyle.blurple)
async def global_button(self, press: discord.Interaction, pressed: Button):