feat(i18n): add translation strings to VolumeSlider

This commit is contained in:
Gwendal Beaumont committed 2026-04-01 09:11:09 +02:00
1 parent 9f185cf52b
commit 96bc244c18
1 file changed
+2 -1
@@ -1,4 +1,5 @@
<script lang="ts">
import { t } from '$lib/i18n';
import { Volume2, VolumeX } from 'lucide-svelte';
import { toggleMute as playerToggleMute } from '$lib/stores/playerStore';
@@ -49,7 +50,7 @@
<div class="volume-container">
{#if showIcon}
<button class="volume-icon" onclick={toggleMute} title={volume > 0 ? 'Mute' : 'Unmute'}>
<button class="volume-icon" onclick={toggleMute} title={volume > 0 ? $t('player.mute') : $t('player.unmute')}>
{#if volume === 0}
<VolumeX size={18} />
{:else}