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
This commit is contained in:
1 parent
2a4f58cb08
commit
ae3a90d378
4 files changed
+21
-28
No files matched your search
@@ -59,7 +59,6 @@
|
|||||||
type="button"
|
type="button"
|
||||||
>
|
>
|
||||||
<Layers size={size} strokeWidth={2} />
|
<Layers size={size} strokeWidth={2} />
|
||||||
<span class="arrow">→</span>
|
|
||||||
</button>
|
</button>
|
||||||
{/if}
|
{/if}
|
||||||
|
|
||||||
@@ -68,17 +67,15 @@
|
|||||||
display: inline-flex;
|
display: inline-flex;
|
||||||
align-items: center;
|
align-items: center;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
gap: 4px;
|
|
||||||
color: var(--text-secondary);
|
color: var(--text-secondary);
|
||||||
opacity: 0.7;
|
opacity: 0.7;
|
||||||
transition: all 0.2s;
|
transition: all 0.2s;
|
||||||
flex-shrink: 0;
|
flex-shrink: 0;
|
||||||
background: none;
|
background: none;
|
||||||
border: none;
|
border: none;
|
||||||
padding: 4px 6px;
|
padding: 4px;
|
||||||
border-radius: 4px;
|
border-radius: 4px;
|
||||||
cursor: pointer;
|
cursor: pointer;
|
||||||
font-size: 12px;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.stack-icon-wrapper:hover {
|
.stack-icon-wrapper:hover {
|
||||||
@@ -90,14 +87,4 @@
|
|||||||
.stack-icon-wrapper:active {
|
.stack-icon-wrapper:active {
|
||||||
transform: scale(0.95);
|
transform: scale(0.95);
|
||||||
}
|
}
|
||||||
|
|
||||||
.arrow {
|
|
||||||
opacity: 0;
|
|
||||||
transition: opacity 0.2s;
|
|
||||||
margin-left: -2px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.stack-icon-wrapper:hover .arrow {
|
|
||||||
opacity: 1;
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
@@ -1467,8 +1467,8 @@
|
|||||||
<h3 class="section-title">{$t('settings.playback.title')}</h3>
|
<h3 class="section-title">{$t('settings.playback.title')}</h3>
|
||||||
<div class="setting-row">
|
<div class="setting-row">
|
||||||
<div class="setting-info">
|
<div class="setting-info">
|
||||||
<span class="setting-label">Autoplay behavior</span>
|
<span class="setting-label">{$t('settings.playback.autoplayBehavior')}</span>
|
||||||
<span class="setting-desc">Choose what happens when you click a track</span>
|
<span class="setting-desc">{$t('settings.playback.autoplayBehaviorDesc')}</span>
|
||||||
</div>
|
</div>
|
||||||
<div class="radio-group">
|
<div class="radio-group">
|
||||||
<label class="radio-option">
|
<label class="radio-option">
|
||||||
@@ -1479,7 +1479,7 @@
|
|||||||
checked={autoplayMode === 'continue'}
|
checked={autoplayMode === 'continue'}
|
||||||
onchange={() => handleAutoplayModeChange('continue')}
|
onchange={() => handleAutoplayModeChange('continue')}
|
||||||
/>
|
/>
|
||||||
<span>Continue within source</span>
|
<span>{$t('settings.playback.continueWithinSource')}</span>
|
||||||
</label>
|
</label>
|
||||||
<label class="radio-option">
|
<label class="radio-option">
|
||||||
<input
|
<input
|
||||||
@@ -1489,20 +1489,14 @@
|
|||||||
checked={autoplayMode === 'track_only'}
|
checked={autoplayMode === 'track_only'}
|
||||||
onchange={() => handleAutoplayModeChange('track_only')}
|
onchange={() => handleAutoplayModeChange('track_only')}
|
||||||
/>
|
/>
|
||||||
<span>Play only selected track</span>
|
<span>{$t('settings.playback.playOnlySelectedTrack')}</span>
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="setting-row">
|
<div class="setting-row">
|
||||||
<div class="label-with-tooltip">
|
<div class="label-with-tooltip">
|
||||||
<span class="setting-label">Show track playing context in player</span>
|
<span class="setting-label">{$t('settings.playback.showContextIcon')}</span>
|
||||||
<Tooltip>
|
<Tooltip text={$t('settings.playback.showContextIconTooltip')} />
|
||||||
<div style="max-width: 260px;">
|
|
||||||
<strong>English:</strong> Shows the context from which the current track is being played, such as from an album view, artist page, playlist, etc.
|
|
||||||
<br><br>
|
|
||||||
<strong>Español:</strong> Muestra el contexto desde donde se está reproduciendo el track actual, por ejemplo desde la vista de álbum, de artista, playlist, etc.
|
|
||||||
</div>
|
|
||||||
</Tooltip>
|
|
||||||
</div>
|
</div>
|
||||||
<Toggle enabled={showContextIcon} onchange={handleShowContextIconChange} />
|
<Toggle enabled={showContextIcon} onchange={handleShowContextIconChange} />
|
||||||
</div>
|
</div>
|
||||||
|
|||||||
@@ -311,7 +311,13 @@
|
|||||||
"gapless": "Gapless Playback",
|
"gapless": "Gapless Playback",
|
||||||
"crossfade": "Crossfade",
|
"crossfade": "Crossfade",
|
||||||
"crossfadeSeconds": "{seconds}s",
|
"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": {
|
"appearance": {
|
||||||
"title": "Appearance",
|
"title": "Appearance",
|
||||||
|
|||||||
@@ -311,7 +311,13 @@
|
|||||||
"gapless": "Reproducción Sin Pausas",
|
"gapless": "Reproducción Sin Pausas",
|
||||||
"crossfade": "Crossfade",
|
"crossfade": "Crossfade",
|
||||||
"crossfadeSeconds": "{seconds}s",
|
"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": {
|
"appearance": {
|
||||||
"title": "Apariencia",
|
"title": "Apariencia",
|
||||||
|
|||||||
Reference in new issue
Block a user