Where can I edit the word “Rank” here:
I tried in customize > text.
Thanks!
Users are discussing how to translate the word “Rank” specifically in the right sidebar mini-gamification leaderboard block, without affecting the main leaderboard page. haydenjames initially tried the Customize > Text interface, but found it changed “Rank” globally. ThunderThighs confirmed the same variable is likely used for both locations. Gonerdot also reported difficulty finding the translation key. JammyDodger suggested checking js.gamification.leaderboard.rank, but noted it may not yet be localized for the sidebar block. Arkshine confirmed the translation key is missing in the component’s template file. Finally, Lhc_fl opened and successfully merged a PR to add the missing translation key, resolving the issue. The discussion is tagged as completed, under UX and gamification, and relates to right-sidebar-blocks.
I searched “rank” in Customize > Text and found this:

Yes, thanks. However, I had already tried that, but it also changed “Rank” on the main /leaderboard/1 page. I only wanted to change it in the sidebar.
Ah. They might be using the same variable for both then. Sorry.
I believe that’s this one - js.gamification.leaderboard.rank.
Edit: Oh hang on, that looks like it’s in the right sidebar block? I’m not sure that one has a translation yet.
This is quite a nifty tip to help find ones that are more awkward:
Yes, the translation is missing:
I opened a PR for it:
https://github.com/discourse/discourse-gamification/pull/146
upd: merged!
This topic was automatically closed after 2 days. New replies are no longer allowed.