From ae3a90d37896ac06074fd999f6d5dcdb24a256ee Mon Sep 17 00:00:00 2001 From: vicrodh <103399283+vicrodh@users.noreply.github.com> Date: Sun, 18 Jan 2026 04:09:20 -0600 Subject: [PATCH] fix(i18n): add translations for playback preferences Added translations for: - Autoplay behavior setting - Continue within source / Play only selected track options - Show context icon setting and tooltip Both English and Spanish translations added. Changed StackIcon tooltip to use native browser title (matches QualityBadge style). Removed arrow indicator from context icon (cursor change is sufficient). cp --- src/lib/components/StackIcon.svelte | 15 +-------------- src/lib/components/views/SettingsView.svelte | 18 ++++++------------ src/lib/i18n/locales/en.json | 8 +++++++- src/lib/i18n/locales/es.json | 8 +++++++- 4 files changed, 21 insertions(+), 28 deletions(-) diff --git a/src/lib/components/StackIcon.svelte b/src/lib/components/StackIcon.svelte index be4c32bc4..7da65d152 100644 --- a/src/lib/components/StackIcon.svelte +++ b/src/lib/components/StackIcon.svelte @@ -59,7 +59,6 @@ type="button" > - → {/if} @@ -68,17 +67,15 @@ display: inline-flex; align-items: center; justify-content: center; - gap: 4px; color: var(--text-secondary); opacity: 0.7; transition: all 0.2s; flex-shrink: 0; background: none; border: none; - padding: 4px 6px; + padding: 4px; border-radius: 4px; cursor: pointer; - font-size: 12px; } .stack-icon-wrapper:hover { @@ -90,14 +87,4 @@ .stack-icon-wrapper:active { transform: scale(0.95); } - - .arrow { - opacity: 0; - transition: opacity 0.2s; - margin-left: -2px; - } - - .stack-icon-wrapper:hover .arrow { - opacity: 1; - } diff --git a/src/lib/components/views/SettingsView.svelte b/src/lib/components/views/SettingsView.svelte index ef1f298e2..789ac7a1e 100644 --- a/src/lib/components/views/SettingsView.svelte +++ b/src/lib/components/views/SettingsView.svelte @@ -1467,8 +1467,8 @@

{$t('settings.playback.title')}

- Autoplay behavior - Choose what happens when you click a track + {$t('settings.playback.autoplayBehavior')} + {$t('settings.playback.autoplayBehaviorDesc')}
- Show track playing context in player - -
- English: Shows the context from which the current track is being played, such as from an album view, artist page, playlist, etc. -

- Español: Muestra el contexto desde donde se está reproduciendo el track actual, por ejemplo desde la vista de álbum, de artista, playlist, etc. -
-
+ {$t('settings.playback.showContextIcon')} +
diff --git a/src/lib/i18n/locales/en.json b/src/lib/i18n/locales/en.json index de35c2a82..63b0e9c5c 100644 --- a/src/lib/i18n/locales/en.json +++ b/src/lib/i18n/locales/en.json @@ -311,7 +311,13 @@ "gapless": "Gapless Playback", "crossfade": "Crossfade", "crossfadeSeconds": "{seconds}s", - "normalizeVolume": "Normalize Volume" + "normalizeVolume": "Normalize Volume", + "autoplayBehavior": "Autoplay behavior", + "autoplayBehaviorDesc": "Choose what happens when you click a track", + "continueWithinSource": "Continue within source", + "playOnlySelectedTrack": "Play only selected track", + "showContextIcon": "Show track playing context in player", + "showContextIconTooltip": "Shows the context from which the current track is being played (album, artist, playlist, etc.)" }, "appearance": { "title": "Appearance", diff --git a/src/lib/i18n/locales/es.json b/src/lib/i18n/locales/es.json index d89ed262c..d4e5952c2 100644 --- a/src/lib/i18n/locales/es.json +++ b/src/lib/i18n/locales/es.json @@ -311,7 +311,13 @@ "gapless": "Reproducción Sin Pausas", "crossfade": "Crossfade", "crossfadeSeconds": "{seconds}s", - "normalizeVolume": "Normalizar Volumen" + "normalizeVolume": "Normalizar Volumen", + "autoplayBehavior": "Comportamiento de autoreproducción", + "autoplayBehaviorDesc": "Elige qué sucede al hacer clic en una pista", + "continueWithinSource": "Continuar dentro del contexto", + "playOnlySelectedTrack": "Reproducir solo la pista seleccionada", + "showContextIcon": "Mostrar contexto de reproducción en el reproductor", + "showContextIconTooltip": "Muestra el contexto desde donde se reproduce la pista actual (álbum, artista, playlist, etc.)" }, "appearance": { "title": "Apariencia",