feat(i18n): translation strings in SearchView
This commit is contained in:
1 file changed
+11
-17
@@ -1227,7 +1227,7 @@
|
||||
class="clear-filter-btn"
|
||||
class:visible={filterType !== null}
|
||||
onclick={clearFilter}
|
||||
title="Clear filter"
|
||||
title={$t('genreFilter.clearFilter')}
|
||||
disabled={!filterType}
|
||||
>
|
||||
<X size={14} />
|
||||
@@ -1320,7 +1320,7 @@
|
||||
class="popular-overlay-btn"
|
||||
type="button"
|
||||
onclick={(e) => { e.stopPropagation(); /* TODO: Add favorite */ }}
|
||||
title="Add to favorites"
|
||||
title={$t('actions.addToFavorites')}
|
||||
>
|
||||
<Heart size={16} />
|
||||
</button>
|
||||
@@ -1328,7 +1328,7 @@
|
||||
class="popular-overlay-btn popular-overlay-btn--play"
|
||||
type="button"
|
||||
onclick={(e) => { e.stopPropagation(); onAlbumPlay?.(album.id); }}
|
||||
title="Play"
|
||||
title={$t('actions.play')}
|
||||
>
|
||||
<Play size={18} fill="white" />
|
||||
</button>
|
||||
@@ -1337,7 +1337,7 @@
|
||||
type="button"
|
||||
bind:this={popularMenuTriggerRef}
|
||||
onclick={(e) => { e.stopPropagation(); mostPopularMenuOpen ? mostPopularMenuOpen = false : openPopularMenu(); }}
|
||||
title="More options"
|
||||
title={$t('actions.moreOptions')}
|
||||
>
|
||||
<MoreHorizontal size={16} />
|
||||
</button>
|
||||
@@ -1422,7 +1422,7 @@
|
||||
class="popular-overlay-btn"
|
||||
type="button"
|
||||
onclick={(e) => { e.stopPropagation(); onTrackAddFavorite?.(track.id); }}
|
||||
title="Add to favorites"
|
||||
title={$t('actions.addToFavorites')}
|
||||
>
|
||||
<Heart size={16} />
|
||||
</button>
|
||||
@@ -1430,7 +1430,7 @@
|
||||
class="popular-overlay-btn popular-overlay-btn--play"
|
||||
type="button"
|
||||
onclick={(e) => { e.stopPropagation(); handleSearchTrackPlay(track, 0); }}
|
||||
title="Play"
|
||||
title={$t('actions.play')}
|
||||
>
|
||||
<Play size={18} fill="white" />
|
||||
</button>
|
||||
@@ -1439,7 +1439,7 @@
|
||||
type="button"
|
||||
bind:this={popularMenuTriggerRef}
|
||||
onclick={(e) => { e.stopPropagation(); mostPopularMenuOpen ? mostPopularMenuOpen = false : openPopularMenu(); }}
|
||||
title="More options"
|
||||
title={$t('actions.moreOptions')}
|
||||
>
|
||||
<MoreHorizontal size={16} />
|
||||
</button>
|
||||
@@ -1514,7 +1514,7 @@
|
||||
class="carousel-btn"
|
||||
onclick={() => scrollArtistsCarousel('left')}
|
||||
disabled={!canScrollArtistsLeft}
|
||||
aria-label="Previous artists"
|
||||
aria-label={$t('actions.previousArtists')}
|
||||
>
|
||||
<ChevronLeft size={20} />
|
||||
</button>
|
||||
@@ -1522,7 +1522,7 @@
|
||||
class="carousel-btn"
|
||||
onclick={() => scrollArtistsCarousel('right')}
|
||||
disabled={!canScrollArtistsRight}
|
||||
aria-label="Next artists"
|
||||
aria-label={$t('actions.nextArtists')}
|
||||
>
|
||||
<ChevronRight size={20} />
|
||||
</button>
|
||||
@@ -1542,9 +1542,6 @@
|
||||
<ChevronRight size={20} />
|
||||
</div>
|
||||
</button>
|
||||
<div class="view-more-info">
|
||||
<span class="view-more-text">{allResults.artists.total - 12} more artists to discover</span>
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
<button class="artist-card" onclick={() => onArtistClick?.(artist.id)}>
|
||||
@@ -1559,7 +1556,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
<div class="artist-name">{artist.name}</div>
|
||||
</button>
|
||||
</button>
|
||||
{/if}
|
||||
{/each}
|
||||
</div>
|
||||
@@ -1608,9 +1605,6 @@
|
||||
<ChevronRight size={20} />
|
||||
</div>
|
||||
</button>
|
||||
<div class="view-more-info">
|
||||
<span class="view-more-text">{allResults.albums.total - 30} more albums to discover</span>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
{:else}
|
||||
@@ -1694,7 +1688,7 @@
|
||||
handleSearchTrackPlay(track, index);
|
||||
}
|
||||
}}
|
||||
aria-label={isActiveTrack ? 'Pause track' : 'Play track'}
|
||||
aria-label={isActiveTrack ? $t('player.pause') : $t('player.play')}
|
||||
>
|
||||
<span class="play-icon" aria-hidden="true">
|
||||
<svg width="24" height="24" viewBox="0 0 24 24" fill="white">
|
||||
|
||||
Reference in new issue
Block a user