mirror of
https://github.com/JonnyBro/JaBa.git
synced 2024-11-21 20:54:58 +05:00
fix translations for queue and nowplaying
This commit is contained in:
parent
a945f42802
commit
d410aaaa24
5 changed files with 9 additions and 19 deletions
|
@ -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"),
|
||||
};
|
||||
|
||||
|
|
|
@ -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"),
|
||||
};
|
||||
|
||||
|
|
|
@ -9,8 +9,5 @@
|
|||
"T_DURATION": "Duration",
|
||||
"T_DESCRIPTION": "Description",
|
||||
"NO_DESCRIPTION": "No description",
|
||||
"REPEAT": "Repeat",
|
||||
"AUTOPLAY": "Autoplay",
|
||||
"QUEUE": "Queue",
|
||||
"TRACK": "Track"
|
||||
"REPEAT": "Repeat"
|
||||
}
|
|
@ -9,8 +9,5 @@
|
|||
"T_DURATION": "Длительность",
|
||||
"T_DESCRIPTION": "Описание",
|
||||
"NO_DESCRIPTION": "Описание отсутствует",
|
||||
"REPEAT": "Повтор",
|
||||
"AUTOPLAY": "Автовоспроизведение",
|
||||
"QUEUE": "Очереди",
|
||||
"TRACK": "Трека"
|
||||
"REPEAT": "Повтор"
|
||||
}
|
|
@ -9,8 +9,5 @@
|
|||
"T_DURATION": "Тривалість",
|
||||
"T_DESCRIPTION": "Опис",
|
||||
"NO_DESCRIPTION": "Опис відсутній",
|
||||
"REPEAT": "Повтор",
|
||||
"AUTOPLAY": "Автовідтворення",
|
||||
"QUEUE": "Черги",
|
||||
"TRACK": "Трека"
|
||||
"REPEAT": "Повтор"
|
||||
}
|
Loading…
Reference in a new issue