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
+5
-5
@@ -72,7 +72,7 @@ export async function run(msg, data) {
|
||||
|
||||
const nativeMsg = msg.message ?? msg;
|
||||
const rawMsg = await nativeMsg.reply(
|
||||
{ embeds: [makeEmbed(this.t(msg, "responses.search.loadingResults"), this.t(msg, "responses.play.searchingProvider", { provider: name }), `Searching ${name}...`)] },
|
||||
{ embeds: [makeEmbed(this.t(msg, "responses.search.loadingResults"), this.t(msg, "responses.play.searchingProvider", { provider: name }), this.t(msg, "responses.search.resultsTitle", { provider: name }))]},
|
||||
{ ping: false }
|
||||
).catch(() => null);
|
||||
if (!rawMsg) return;
|
||||
@@ -99,7 +99,7 @@ export async function run(msg, data) {
|
||||
embeds: [makeEmbed(
|
||||
desc,
|
||||
this.t(msg, "responses.search.reactHint"),
|
||||
`${name} — Search Results`
|
||||
this.t(msg, "responses.search.resultsTitle", { provider: name })
|
||||
)]
|
||||
}).catch(() => {});
|
||||
|
||||
@@ -131,7 +131,7 @@ export async function run(msg, data) {
|
||||
|
||||
if (e.emoji_id === CANCEL_EMOJI) {
|
||||
rawMsg.edit({
|
||||
embeds: [makeEmbed(this.t(msg, "responses.search.cancelled"), null, `${name} — Search Results`)]
|
||||
embeds: [makeEmbed(this.t(msg, "responses.search.cancelled"), null, this.t(msg, "responses.search.resultsTitle", { provider: name }))]
|
||||
}).catch(() => {});
|
||||
return;
|
||||
}
|
||||
@@ -146,7 +146,7 @@ export async function run(msg, data) {
|
||||
embeds: [makeEmbed(
|
||||
this.t(msg, "responses.search.added", { title: v.title, url: v.url }),
|
||||
null,
|
||||
`${name} — Search Results`
|
||||
this.t(msg, "responses.search.resultsTitle", { provider: name })
|
||||
)]
|
||||
}).catch(() => {});
|
||||
});
|
||||
@@ -156,7 +156,7 @@ export async function run(msg, data) {
|
||||
unobserve();
|
||||
clearReactions().catch(() => {});
|
||||
rawMsg.edit({
|
||||
embeds: [makeEmbed(this.t(msg, "responses.search.timedOut"), this.t(msg, "responses.search.sessionClosed"), `${name} — Search Results`)]
|
||||
embeds: [makeEmbed(this.t(msg, "responses.search.timedOut"), this.t(msg, "responses.search.sessionClosed"), this.t(msg, "responses.search.resultsTitle", { provider: name }))]
|
||||
}).catch(() => {});
|
||||
}, SESSION_MS);
|
||||
}
|
||||
Reference in new issue
Block a user