mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
i18n: replace hardcoded strings with locale keys across all commands
- Add locale keys for gateway/MessageHandler permission error messages
- Add locale support to settings command (prettifySettingLabel now accepts t/guildId)
- Replace all hardcoded strings in player, search, seek, trackopt, vote, autoplay, debug, lastfm commands with this.t() calls
- Add new locale keys: command suggestions, vote descriptions, debug pagination, lastfm auth/link/profile/whoknows/leaderboard/playlists/artists strings
- Fix typos in en.json: broken backtick in alreadyLinked, extra $ in unlovedTrack artist template
- Add new locale key for command suggestion ("Did you mean...?")
- Remove "React to refresh" suffix from controls expired footer (now just uses locale key)
This commit is contained in:
1 parent
b581722c46
commit
eeb27de9bb
19 files changed
+1476
-5862
No files matched your search
@@ -89,11 +89,10 @@ export async function run(msg, data) {
|
||||
p.on("queueEnd", p._autoplayHandler);
|
||||
}
|
||||
|
||||
const lfStatus = this.lastfm?.enabled ? " with Last.fm recommendations" : " using YouTube search";
|
||||
return msg.reply({
|
||||
embeds: [new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setDescription(`🔁 Autoplay **enabled**${lfStatus} — similar tracks will be added automatically when the queue ends.`)]
|
||||
.setDescription(this.t(msg, "responses.autoplay.enabled"))]
|
||||
});
|
||||
} else {
|
||||
if (p._autoplayHandler) {
|
||||
@@ -104,7 +103,7 @@ export async function run(msg, data) {
|
||||
return msg.reply({
|
||||
embeds: [new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setDescription(`➡️ Autoplay **disabled** — the bot will stop when the queue ends.`)]
|
||||
.setDescription(this.t(msg, "responses.autoplay.disabled"))]
|
||||
});
|
||||
}
|
||||
}
|
||||
Reference in new issue
Block a user