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 }), 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", mode = queue.repeatMode === QueueRepeatMode.AUTOPLAY ? "3" : queue.repeatMode === QueueRepeatMode.QUEUE ? "2" : queue.repeatMode === QueueRepeatMode.TRACK ? "1" : "0",
translated = { translated = {
"3": interaction.translate("music/nowplaying:AUTOPLAY"), "3": interaction.translate("music/loop:AUTOPLAY"),
"2": interaction.translate("music/nowplaying:QUEUE"), "2": interaction.translate("music/loop:QUEUE"),
"1": interaction.translate("music/nowplaying:TRACK"), "1": interaction.translate("music/loop:TRACK"),
"0": interaction.translate("common:DISABLED"), "0": interaction.translate("common:DISABLED"),
}; };

View file

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

View file

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

View file

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

View file

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