mirror of
https://github.com/remix-bot/fluxer.git
synced 2026-11-24 06:01:44 -05:00
feat(i18n): localize all newly upgraded command embeds across 6 languages
- Add complete translations for en, ar-SA, ckb, tr, de-DE, and pt-BR - Localize author headers, fields, and footers for playnext, remove, move, and trackopt - Localize audio mastering fields for normalize and volumedefault - Localize Last.fm whoknows leaderboards and Crown Holder cards - Localize help command inspector and voice channel picker embeds - Ensure 0 missing keys and 100% translation coverage
This commit is contained in:
1 parent
8689dee50a
commit
63433816c4
16 files changed
+420
-120
No files matched your search
+8
-7
@@ -29,6 +29,7 @@ export async function run(message, data) {
|
||||
const p = await this.getPlayer(message, false, false, false);
|
||||
if (!p) return;
|
||||
const raw = String(data.get("position")?.value ?? "").trim();
|
||||
const prefix = this.handler?.getPrefix?.(message.message?.guildId ?? message.channel?.guildId) ?? "%";
|
||||
if (!raw) return message.replyEmbed("Please provide a queue position or range (e.g. `3` or `3-6`).").catch(() => {});
|
||||
|
||||
const rangeMatch = raw.match(/^(\d+)\s*[-–—to:]+\s*(\d+)$/i) || raw.match(/^(\d+)\s+(\d+)$/);
|
||||
@@ -44,10 +45,10 @@ export async function run(message, data) {
|
||||
const count = Math.abs(to - from) + 1;
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setAuthor({ name: "🗑️ Removed from Queue" })
|
||||
.setTitle(`Removed ${count} Tracks`)
|
||||
.setDescription(`Successfully removed positions **#${Math.min(from, to)}** to **#${Math.max(from, to)}** from the queue.`)
|
||||
.setFooter({ text: `${remaining} track${remaining === 1 ? "" : "s"} remaining in queue • %list` });
|
||||
.setAuthor({ name: this.t(message, "responses.remove.removedAuthor") })
|
||||
.setTitle(this.t(message, "responses.remove.removedRangeTitle", { count }))
|
||||
.setDescription(this.t(message, "responses.remove.removedRangeDesc", { from: Math.min(from, to), to: Math.max(from, to) }))
|
||||
.setFooter({ text: this.t(message, "responses.remove.remainingFooter", { count: remaining, plural: remaining === 1 ? "" : "s", prefix }) });
|
||||
return message.reply({ embeds: [embed] }).catch(() => {});
|
||||
}
|
||||
|
||||
@@ -62,10 +63,10 @@ export async function run(message, data) {
|
||||
const remaining = p.queue?.size() ?? 0;
|
||||
const embed = new EmbedBuilder()
|
||||
.setColor(getGlobalColor())
|
||||
.setAuthor({ name: "🗑️ Removed from Queue" })
|
||||
.setAuthor({ name: this.t(message, "responses.remove.removedAuthor") })
|
||||
.setTitle(track?.title?.slice(0, 256) || "Removed Track")
|
||||
.setDescription(`Removed track at position **#${single}** from the queue.`)
|
||||
.setFooter({ text: `${remaining} track${remaining === 1 ? "" : "s"} remaining in queue • %list` });
|
||||
.setDescription(this.t(message, "responses.remove.removedSingleDesc", { position: single }))
|
||||
.setFooter({ text: this.t(message, "responses.remove.remainingFooter", { count: remaining, plural: remaining === 1 ? "" : "s", prefix }) });
|
||||
if (track?.thumbnail) embed.setThumbnail(track.thumbnail);
|
||||
return message.reply({ embeds: [embed] }).catch(() => {});
|
||||
}
|
||||
Reference in new issue
Block a user