Skip to content

feat(discord-bot): translate leaderboard names through stats keys - #1187

Open
ugcodrr wants to merge 3 commits into
mainfrom
feat/leaderboard-names-i18n
Open

ugcodrr wants to merge 3 commits into
mainfrom
feat/leaderboard-names-i18n

Conversation

@ugcodrr

@ugcodrr ugcodrr commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Description: Leaderboard titles, column headers and autocomplete were always in English, even with Discord set to another language.

  1. Names reuse the stats string that matches the board's stat, so game and mode names stay in English and Crowdin only gets 5 new strings (Pos, Player, Completions, Time, Winner).
  2. The BedWars diamond and emerald boards now say Diamonds and Emeralds, like /bedwars does, so they reuse those strings too.
  3. Autocomplete still matches the English names too, so typing "wins" works whatever language Discord is in.

Testing: /leaderboard bedwars leaderboard:overall.finalKills with Discord in German shows "Finale Kills" in the title and headers, and English boards look the same as before.

/leaderboard bedwars, before and after

/leaderboard bedwars, before and after

/leaderboard guild, before and after

Closes STA-83

Leaderboard choices, image titles and column headers reuse the stats.* string whose English text matches the board's stat. Game and mode names stay in English.
Matches /bedwars, so the boards reuse stats.diamonds and stats.emeralds.
@vercel

vercel Bot commented Nov 11, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

1 Skipped Deployment
Project Deployment Actions Updated
statsify Ignored Ignored Nov 11, 2026 6:16am UTC

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant