refactor(SearchView): replace hard-coded strings
This commit is contained in:
6 files changed
+56
-16
No files matched your search
@@ -1143,7 +1143,7 @@
|
||||
class:active={activeTab === 'all'}
|
||||
onclick={() => handleTabChange('all')}
|
||||
>
|
||||
<span>All</span>
|
||||
<span>{$t('search.all')}</span>
|
||||
</button>
|
||||
<button
|
||||
class="tab"
|
||||
@@ -1171,7 +1171,7 @@
|
||||
class:active={activeTab === 'playlists'}
|
||||
onclick={() => handleTabChange('playlists')}
|
||||
>
|
||||
<span>Playlists</span>
|
||||
<span>{$t('search.playlists')}</span>
|
||||
</button>
|
||||
</div>
|
||||
|
||||
@@ -1184,7 +1184,7 @@
|
||||
checked={filterType === 'MainArtist'}
|
||||
onchange={() => setFilter('MainArtist')}
|
||||
/>
|
||||
<span>Artist</span>
|
||||
<span>{$t('search.mainArtist')}</span>
|
||||
</label>
|
||||
<label class="filter-option">
|
||||
<input
|
||||
@@ -1193,7 +1193,7 @@
|
||||
checked={filterType === 'Performer'}
|
||||
onchange={() => setFilter('Performer')}
|
||||
/>
|
||||
<span>Performer</span>
|
||||
<span>{$t('search.performer')}</span>
|
||||
</label>
|
||||
<label class="filter-option">
|
||||
<input
|
||||
@@ -1202,7 +1202,7 @@
|
||||
checked={filterType === 'Composer'}
|
||||
onchange={() => setFilter('Composer')}
|
||||
/>
|
||||
<span>Composer</span>
|
||||
<span>{$t('search.composer')}</span>
|
||||
</label>
|
||||
<label class="filter-option">
|
||||
<input
|
||||
@@ -1211,7 +1211,7 @@
|
||||
checked={filterType === 'Label'}
|
||||
onchange={() => setFilter('Label')}
|
||||
/>
|
||||
<span>Label</span>
|
||||
<span>{$t('search.label')}</span>
|
||||
</label>
|
||||
<label class="filter-option">
|
||||
<input
|
||||
@@ -1220,7 +1220,7 @@
|
||||
checked={filterType === 'ReleaseName'}
|
||||
onchange={() => setFilter('ReleaseName')}
|
||||
/>
|
||||
<span>Release</span>
|
||||
<span>{$t('search.releaseName')}</span>
|
||||
</label>
|
||||
|
||||
<button
|
||||
@@ -1261,7 +1261,7 @@
|
||||
<div class="top-section">
|
||||
<div class="most-popular">
|
||||
<div class="section-header">
|
||||
<h3><Crown size={18} color="gold" /> Most Popular</h3>
|
||||
<h3><Crown size={18} color="gold" /> {$t('search.mostPopular')}</h3>
|
||||
</div>
|
||||
<div class="most-popular-wrapper">
|
||||
{#if allResults.most_popular?.type === 'artists'}
|
||||
@@ -1508,7 +1508,7 @@
|
||||
|
||||
<div class="artists-section">
|
||||
<div class="section-header">
|
||||
<h3>Artists</h3>
|
||||
<h3>{$t('search.artists')}</h3>
|
||||
<div class="carousel-controls">
|
||||
<button
|
||||
class="carousel-btn"
|
||||
@@ -1527,7 +1527,7 @@
|
||||
<ChevronRight size={20} />
|
||||
</button>
|
||||
<button class="view-all-link" onclick={() => handleTabChange('artists')}>
|
||||
View all ({allResults.artists.total})
|
||||
{$t('search.viewAll')} ({allResults.artists.total})
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1573,7 +1573,7 @@
|
||||
{#if allResults.albums.items.length > 0}
|
||||
<div class="albums-section">
|
||||
<div class="section-header">
|
||||
<h3>Albums</h3>
|
||||
<h3>{$t('search.albums')}</h3>
|
||||
<div class="carousel-controls">
|
||||
<button
|
||||
class="carousel-btn"
|
||||
@@ -1592,7 +1592,7 @@
|
||||
<ChevronRight size={20} />
|
||||
</button>
|
||||
<button class="view-all-link" onclick={() => handleTabChange('albums')}>
|
||||
View all ({allResults.albums.total})
|
||||
{$t('search.viewAll')} ({allResults.albums.total})
|
||||
</button>
|
||||
</div>
|
||||
</div>
|
||||
@@ -1651,9 +1651,9 @@
|
||||
{#if allResults.tracks.items.length > 0}
|
||||
<div class="tracks-section">
|
||||
<div class="section-header">
|
||||
<h3>Tracks</h3>
|
||||
<h3>{$t('search.tracks')}</h3>
|
||||
<button class="view-all-link" onclick={() => handleTabChange('tracks')}>
|
||||
View all ({allResults.tracks.total})
|
||||
{$t('search.viewAll')} ({allResults.tracks.total})
|
||||
</button>
|
||||
</div>
|
||||
<div class="tracks-list-compact">
|
||||
@@ -1769,9 +1769,9 @@
|
||||
{#if allResults.playlists && allResults.playlists.items.length > 0}
|
||||
<div class="playlists-section">
|
||||
<div class="section-header">
|
||||
<h3>Playlists</h3>
|
||||
<h3>{$t('search.playlists')}</h3>
|
||||
<button class="view-all-link" onclick={() => handleTabChange('playlists')}>
|
||||
View all ({allResults.playlists.total})
|
||||
{$t('search.viewAll')} ({allResults.playlists.total})
|
||||
</button>
|
||||
</div>
|
||||
<div class="playlists-preview-grid">
|
||||
|
||||
@@ -97,10 +97,18 @@
|
||||
"recentSearches": "Letzte Suchanfragen",
|
||||
"clearHistory": "Verlauf löschen",
|
||||
"startTyping": "Beginne zu tippen, um Qobuz™ zu durchsuchen",
|
||||
"composer": "Komponist:in",
|
||||
"label": "Label",
|
||||
"mainArtist": "Künstler:in",
|
||||
"mostPopular": "Top-Ergebnis",
|
||||
"noAlbumsFor": "Keine Alben gefunden für \"{query}\"",
|
||||
"noTracksFor": "Keine Titel gefunden für \"{query}\"",
|
||||
"noArtistsFor": "Keine Künstler gefunden für \"{query}\"",
|
||||
"noPlaylistsFor": "Keine Playlists gefunden für \"{query}\"",
|
||||
"performer": "Weitere Interpret:innen",
|
||||
"playlists": "Playlists",
|
||||
"releaseName": "Album-/Track-Name",
|
||||
"viewAll": "Alle sehen",
|
||||
"viewMore": "Mehr anzeigen"
|
||||
},
|
||||
"label": {
|
||||
|
||||
@@ -100,10 +100,18 @@
|
||||
"recentSearches": "Recent Searches",
|
||||
"clearHistory": "Clear History",
|
||||
"startTyping": "Start typing to search Qobuz™",
|
||||
"composer": "Composer",
|
||||
"label": "Label",
|
||||
"mainArtist": "Main Artist",
|
||||
"mostPopular": "Most popular",
|
||||
"noAlbumsFor": "No albums found for \"{query}\"",
|
||||
"noTracksFor": "No tracks found for \"{query}\"",
|
||||
"noArtistsFor": "No artists found for \"{query}\"",
|
||||
"noPlaylistsFor": "No playlists found for \"{query}\"",
|
||||
"performer": "Performer",
|
||||
"playlists": "Playlists",
|
||||
"releaseName": "Release Name",
|
||||
"viewAll": "View all",
|
||||
"viewMore": "View more"
|
||||
},
|
||||
"label": {
|
||||
|
||||
@@ -100,10 +100,18 @@
|
||||
"recentSearches": "Búsquedas Recientes",
|
||||
"clearHistory": "Limpiar Historial",
|
||||
"startTyping": "Escribe para buscar en Qobuz™",
|
||||
"composer": "Compositor",
|
||||
"label": "Sello",
|
||||
"mainArtist": "Artista Principal",
|
||||
"mostPopular": "Lo más escuchado",
|
||||
"noAlbumsFor": "No se encontraron álbumes para \"{query}\"",
|
||||
"noTracksFor": "No se encontraron pistas para \"{query}\"",
|
||||
"noArtistsFor": "No se encontraron artistas para \"{query}\"",
|
||||
"noPlaylistsFor": "No se encontraron listas para \"{query}\"",
|
||||
"performer": "Intérprete",
|
||||
"playlists": "Playlists",
|
||||
"releaseName": "Nombre Publicación",
|
||||
"viewAll": "Ver todo",
|
||||
"viewMore": "Ver más"
|
||||
},
|
||||
"label": {
|
||||
|
||||
@@ -97,10 +97,18 @@
|
||||
"recentSearches": "Recherches récentes",
|
||||
"clearHistory": "Effacer l'historique",
|
||||
"startTyping": "Commencez à taper pour rechercher sur Qobuz™",
|
||||
"composer": "Compositeur",
|
||||
"label": "Label",
|
||||
"mainArtist": "Artiste principal",
|
||||
"mostPopular": "Plus populaire",
|
||||
"noAlbumsFor": "Aucun album trouvé pour « {query} »",
|
||||
"noTracksFor": "Aucune piste trouvée pour « {query} »",
|
||||
"noArtistsFor": "Aucun artiste trouvé pour « {query} »",
|
||||
"noPlaylistsFor": "Aucune playlist trouvée pour « {query} »",
|
||||
"performer": "Interprète",
|
||||
"playlists": "Playlists",
|
||||
"releaseName": "Nom / Titre",
|
||||
"viewAll": "Voir tout",
|
||||
"viewMore": "Voir plus"
|
||||
},
|
||||
"label": {
|
||||
|
||||
@@ -100,10 +100,18 @@
|
||||
"recentSearches": "Buscas Recentes",
|
||||
"clearHistory": "Limpar Histórico",
|
||||
"startTyping": "Comece a digitar para buscar no Qobuz™",
|
||||
"composer": "Compositor",
|
||||
"label": "Selo",
|
||||
"mainArtist": "Artista Principal",
|
||||
"mostPopular": "Mais populares",
|
||||
"noAlbumsFor": "Nenhum álbum encontrado para \"{query}\"",
|
||||
"noTracksFor": "Nenhuma faixa encontrada para \"{query}\"",
|
||||
"noArtistsFor": "Nenhum artista encontrado para \"{query}\"",
|
||||
"noPlaylistsFor": "Nenhuma playlist encontrada para \"{query}\"",
|
||||
"performer": "Intérprete",
|
||||
"playlists": "Playlists",
|
||||
"releaseName": "Nome do lançamento",
|
||||
"viewAll": "Ver tudo",
|
||||
"viewMore": "Ver mais"
|
||||
},
|
||||
"label": {
|
||||
|
||||
Reference in new issue
Block a user