From 72ea1090753ccca3c5573801ae0b0a4439e1b736 Mon Sep 17 00:00:00 2001 From: Andrew Lee Date: Tue, 13 Feb 2024 22:35:50 -0500 Subject: Fully working i18n (hopefully); Docker on walkthrough --- AudioBackend/QueueSystem.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'AudioBackend/QueueSystem.js') diff --git a/AudioBackend/QueueSystem.js b/AudioBackend/QueueSystem.js index 0cd6ded..2bab8eb 100644 --- a/AudioBackend/QueueSystem.js +++ b/AudioBackend/QueueSystem.js @@ -20,6 +20,8 @@ ***************************************************************************/ import { playAudio, updatePlaylist } from './PlayAudio.js'; import { files } from './AudioControl.js'; +import i18next from '../Utilities/i18n.js'; +const t = i18next.t; function shuffleArray(array) { // Durstenfeld Shuffle @@ -29,16 +31,16 @@ function shuffleArray(array) { } } export async function orderPlaylist(bot) { - console.log('Playing beats by order...'); + console.log(t('musicPlayOrder')); updatePlaylist('reset'); console.log(files); return await playAudio(bot); } export async function shufflePlaylist(bot) { - console.log('Shuffling beats...'); + console.log(t('musicShuffling')); shuffleArray(files); - console.log('Playing beats by shuffle...'); + console.log(t('musicPlayShuffle')); updatePlaylist('reset'); console.log(files); return await playAudio(bot); -- cgit v1.2.3