Added translation for even more known errors

This commit is contained in:
RemixDev 2020-07-23 16:43:20 +02:00
parent 3fa8b34d37
commit 281b505500
4 changed files with 26 additions and 5 deletions

File diff suppressed because one or more lines are too long

View File

@ -147,6 +147,13 @@ socket.on('errorMessage', function(error) {
toast(error, 'error')
})
socket.on('queueError', function(queueItem) {
if (queueItem.errid)
toast(i18n.t(`errors.ids.${queueItem.errid}`), 'error')
else
toast(queueItem.error, 'error')
})
socket.on('alreadyInQueue', function(data) {
toast(i18n.t('toasts.alreadyInQueue', [data.title]), 'playlist_add_check')
})

View File

@ -31,7 +31,14 @@ const en = {
errors: {
title: 'Errors for {0}',
ids: {
notOnDeezer: 'This track is not available on Deezer!',
invalidURL: 'URL not recognized',
unsupportedURL: 'URL not supported yet',
ISRCnotOnDeezer: 'Track ISRC is not available on deezer',
notYourPrivatePlaylist: 'You can\'t download others private playlists.',
spotifyDisabled: 'Spotify Features is not setted up correctly.',
trackNotOnDeezer: 'Track not found on deezer!',
albumNotOnDeezer: 'Album not found on deezer!',
notOnDeezer: 'Track not available on Deezer!',
notEncoded: 'Track not yet encoded!',
notEncodedNoAlternative: 'Track not yet encoded and no alternative found!',
wrongBitrate: 'Track not found at desired bitrate.',

View File

@ -31,7 +31,14 @@ const it = {
errors: {
title: 'Errori riguardanti {0}',
ids: {
notOnDeezer: 'Questa traccia non è disponibile su Deezer!',
invalidURL: 'URL non riconosciuto',
unsupportedURL: 'URL non ancora supportato',
ISRCnotOnDeezer: 'Questo ISRC non è disponibile su Deezer',
notYourPrivatePlaylist: 'Non puoi scaricare le playlist private degli altri.',
spotifyDisabled: 'Spotify Features non è impostato correttamente.',
trackNotOnDeezer: 'Traccia non trovata su Deezer!',
albumNotOnDeezer: 'Album non trovato su Deezer!',
notOnDeezer: 'Traccia non disponibile su Deezer!',
notEncoded: 'Traccia non ancora codificata!',
notEncodedNoAlternative: 'Traccia non ancora codificata e nessuna alternativa trovata!',
wrongBitrate: 'Traccia non trovata con il bitrate specificato.',