From d410aaaa24b1cc910aeb50a892777caa7f4983df Mon Sep 17 00:00:00 2001 From: "Jonny_Bro (Nikita)" Date: Fri, 24 Nov 2023 01:12:54 +0500 Subject: [PATCH] fix translations for queue and nowplaying --- commands/Music/nowplaying.js | 6 +++--- commands/Music/queue.js | 7 +++---- languages/en-US/music/nowplaying.json | 5 +---- languages/ru-RU/music/nowplaying.json | 5 +---- languages/uk-UA/music/nowplaying.json | 5 +---- 5 files changed, 9 insertions(+), 19 deletions(-) diff --git a/commands/Music/nowplaying.js b/commands/Music/nowplaying.js index aed15dfb..c07f617f 100644 --- a/commands/Music/nowplaying.js +++ b/commands/Music/nowplaying.js @@ -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"), }; diff --git a/commands/Music/queue.js b/commands/Music/queue.js index 8298c2d9..e7e292a7 100644 --- a/commands/Music/queue.js +++ b/commands/Music/queue.js @@ -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"), }; diff --git a/languages/en-US/music/nowplaying.json b/languages/en-US/music/nowplaying.json index b6bd629a..e7d6d54f 100644 --- a/languages/en-US/music/nowplaying.json +++ b/languages/en-US/music/nowplaying.json @@ -9,8 +9,5 @@ "T_DURATION": "Duration", "T_DESCRIPTION": "Description", "NO_DESCRIPTION": "No description", - "REPEAT": "Repeat", - "AUTOPLAY": "Autoplay", - "QUEUE": "Queue", - "TRACK": "Track" + "REPEAT": "Repeat" } \ No newline at end of file diff --git a/languages/ru-RU/music/nowplaying.json b/languages/ru-RU/music/nowplaying.json index 2715f8b7..f544a502 100644 --- a/languages/ru-RU/music/nowplaying.json +++ b/languages/ru-RU/music/nowplaying.json @@ -9,8 +9,5 @@ "T_DURATION": "Длительность", "T_DESCRIPTION": "Описание", "NO_DESCRIPTION": "Описание отсутствует", - "REPEAT": "Повтор", - "AUTOPLAY": "Автовоспроизведение", - "QUEUE": "Очереди", - "TRACK": "Трека" + "REPEAT": "Повтор" } \ No newline at end of file diff --git a/languages/uk-UA/music/nowplaying.json b/languages/uk-UA/music/nowplaying.json index 0496f442..29fa38cf 100644 --- a/languages/uk-UA/music/nowplaying.json +++ b/languages/uk-UA/music/nowplaying.json @@ -9,8 +9,5 @@ "T_DURATION": "Тривалість", "T_DESCRIPTION": "Опис", "NO_DESCRIPTION": "Опис відсутній", - "REPEAT": "Повтор", - "AUTOPLAY": "Автовідтворення", - "QUEUE": "Черги", - "TRACK": "Трека" + "REPEAT": "Повтор" } \ No newline at end of file