Removed thingsArticle and switched to number of things to add to queue

This commit is contained in:
RemixDev 2020-10-31 19:49:05 +01:00
parent 1182efd2dd
commit 99c2d0be0f
5 changed files with 21 additions and 22 deletions

File diff suppressed because one or more lines are too long

View File

@ -26,7 +26,9 @@
</ul>
<button class="btn btn-primary" v-if="!activeTabEmpty" style="margin-bottom: 2rem" @click="downloadAllOfType">
{{ $t('globals.downloadAll', { things: $tc(`globals.listTabs.${activeTab}`, 2), thingsArticle: $tc(`globals.listTabsArticle.${activeTab}`, 2) }) }}
{{
$t('globals.download', { thing: $tc(`globals.listTabs.${activeTab}N`, getTabLenght() )})
}}
</button>
<div class="favorites_tabcontent" :class="{ 'favorites_tabcontent--active': activeTab === 'playlist' }">
@ -387,6 +389,12 @@ export default {
return toDownload
},
getTabLenght(tab = this.activeTab) {
let total = this[`${tab}s`].length
// TODO: Add Spotify playlists to downlaod queue as well
//if (tab === "playlist") total += this.spotifyPlaylists.length
return total
},
getLovedTracksPlaylist() {
let lovedTracks = this.playlists.filter(playlist => {
return playlist.is_loved_track

View File

@ -4,7 +4,6 @@ const en = {
back: 'back',
loading: 'loading',
download: 'Download {thing}',
downloadAll: 'Download all {things}',
by: 'by {artist}',
in: 'in {album}',
download_hint: 'Download',
@ -28,7 +27,6 @@ const en = {
single: 'single | singles',
title: 'title | titles',
track: 'track | tracks',
trackN: '0 tracks | {n} track | {n} tracks',
releaseN: '0 releases | {n} release | {n} releases',
playlist: 'playlist | playlists',
compile: 'compilation | compilations',
@ -38,13 +36,11 @@ const en = {
featured: 'Featured in',
spotifyPlaylist: 'spotify playlist | spotify playlists',
releaseDate: 'release date',
error: 'error'
},
listTabsArticle:{
playlist: 'the playlist | the playlists',
album: 'the album | the albums',
artist: 'the artist | the artists',
track: 'the track | the tracks',
error: 'error',
trackN: '0 tracks | {n} track | {n} tracks',
albumN: '0 albums | {n} album | {n} albums',
artistN: '0 artists | {n} artist | {n} artists',
playlistN: '0 playlists | {n} playlist | {n} playlists',
}
},
about: {

View File

@ -4,7 +4,6 @@ const fr = {
back: 'retour',
loading: 'chargement en cours',
download: 'Télécharger {thing}',
downloadAll: "Télécharger l'intégralité des {things}",
by: 'par {artist}',
in: 'dans {album}',
download_hint: 'Télécharger',

View File

@ -4,7 +4,6 @@ const it = {
back: 'indietro',
loading: 'caricamento',
download: 'Scarica {thing}',
downloadAll: 'Scarica tutti {thingsArticle}',
by: 'di {artist}',
in: 'in {album}',
download_hint: 'Scarica',
@ -27,7 +26,6 @@ const it = {
single: 'singolo | singoli',
title: 'titolo | titoli',
track: 'brano | brani',
trackN: '0 brani | {n} brano | {n} brani',
releaseN: '0 dischi | {n} disco | {n} dischi',
playlist: 'playlist',
compile: 'compilation',
@ -38,13 +36,11 @@ const it = {
spotifyPlaylist: 'playlist spotify',
releaseDate: 'data di uscita',
error: 'errore',
empty: ''
},
listTabsArticle:{
playlist: 'la playlist | le playlist',
album: `l'album | gli album`,
artist: `l'artista | gli artisti`,
track: 'il brano | i brani',
empty: '',
trackN: '0 brani | {n} brano | {n} brani',
albumN: '{n} album',
artistN: '0 artisti | {n} artista | {n} artisti',
playlistN: '{n} playlist',
}
},
about: {