diff options
| author | Andrew Lee <alee14498@protonmail.com> | 2024-02-13 22:35:50 -0500 |
|---|---|---|
| committer | Andrew Lee <alee14498@protonmail.com> | 2024-02-13 23:39:19 -0500 |
| commit | 72ea1090753ccca3c5573801ae0b0a4439e1b736 (patch) | |
| tree | bb3ff6e00572d111ddc1af0a864df90208c63840 /AudioBackend/QueueSystem.js | |
| parent | 3d4f5061d402b44218cdfd351f39317d5f8ecd11 (diff) | |
| download | DLAP-72ea1090753ccca3c5573801ae0b0a4439e1b736.tar.gz DLAP-72ea1090753ccca3c5573801ae0b0a4439e1b736.tar.bz2 DLAP-72ea1090753ccca3c5573801ae0b0a4439e1b736.zip | |
Fully working i18n (hopefully); Docker on walkthrough
Diffstat (limited to 'AudioBackend/QueueSystem.js')
| -rw-r--r-- | AudioBackend/QueueSystem.js | 8 |
1 files changed, 5 insertions, 3 deletions
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); |
