fix translations for queue and nowplaying

This commit is contained in:
Jonny_Bro (Nikita) 2023-11-24 01:12:54 +05:00
parent a945f42802
commit d410aaaa24
5 changed files with 9 additions and 19 deletions

View file

@ -235,9 +235,9 @@ async function updateEmbed(interaction, queue) {
data = await interaction.client.guildsData.findOne({ id: interaction.guildId }),
mode = queue.repeatMode === QueueRepeatMode.AUTOPLAY ? "3" : queue.repeatMode === QueueRepeatMode.QUEUE ? "2" : queue.repeatMode === QueueRepeatMode.TRACK ? "1" : "0",
translated = {
"3": interaction.translate("music/nowplaying:AUTOPLAY"),
"2": interaction.translate("music/nowplaying:QUEUE"),
"1": interaction.translate("music/nowplaying:TRACK"),
"3": interaction.translate("music/loop:AUTOPLAY"),
"2": interaction.translate("music/loop:QUEUE"),
"1": interaction.translate("music/loop:TRACK"),
"0": interaction.translate("common:DISABLED"),
};

View file

@ -157,10 +157,9 @@ function generateQueueEmbeds(client, interaction, queue) {
const embeds = [],
currentTrack = queue.currentTrack,
translated = {
"AUTOPLAY": interaction.translate("music/nowplaying:AUTOPLAY"),
"QUEUE": interaction.translate("music/nowplaying:QUEUE"),
"TRACK": interaction.translate("music/nowplaying:TRACK"),
"OFF": interaction.translate("common:DISABLED"),
"3": interaction.translate("music/loop:AUTOPLAY"),
"2": interaction.translate("music/loop:QUEUE"),
"1": interaction.translate("music/loop:TRACK"),
"0": interaction.translate("common:DISABLED"),
};

View file

@ -9,8 +9,5 @@
"T_DURATION": "Duration",
"T_DESCRIPTION": "Description",
"NO_DESCRIPTION": "No description",
"REPEAT": "Repeat",
"AUTOPLAY": "Autoplay",
"QUEUE": "Queue",
"TRACK": "Track"
"REPEAT": "Repeat"
}

View file

@ -9,8 +9,5 @@
"T_DURATION": "Длительность",
"T_DESCRIPTION": "Описание",
"NO_DESCRIPTION": "Описание отсутствует",
"REPEAT": "Повтор",
"AUTOPLAY": "Автовоспроизведение",
"QUEUE": "Очереди",
"TRACK": "Трека"
"REPEAT": "Повтор"
}

View file

@ -9,8 +9,5 @@
"T_DURATION": "Тривалість",
"T_DESCRIPTION": "Опис",
"NO_DESCRIPTION": "Опис відсутній",
"REPEAT": "Повтор",
"AUTOPLAY": "Автовідтворення",
"QUEUE": "Черги",
"TRACK": "Трека"
"REPEAT": "Повтор"
}