diff --git a/src/lib/components/PlaylistModal.svelte b/src/lib/components/PlaylistModal.svelte index 5b99c0a13..f24ddb8b2 100644 --- a/src/lib/components/PlaylistModal.svelte +++ b/src/lib/components/PlaylistModal.svelte @@ -231,7 +231,7 @@ async function handleCreate() { if (!name.trim()) { - error = 'Please enter a playlist name'; + error = $t('playlist.enterName'); return; } @@ -284,7 +284,7 @@ async function handleUpdate() { if (!playlist) return; if (!name.trim()) { - error = 'Please enter a playlist name'; + error = $t('playlist.enterName'); return; } @@ -342,7 +342,7 @@ async function handleAddToPlaylist() { if (!selectedPlaylistId || trackIds.length === 0) { - error = 'Please select a playlist'; + error = $t('playlist.selectPlaylist'); return; } @@ -384,7 +384,7 @@ async function handleDirectAddToPlaylist() { if (!selectedPlaylistId || trackIds.length === 0) { - error = 'Please select a playlist'; + error = $t('playlist.selectPlaylist'); return; } @@ -486,7 +486,7 @@ async function handleCreateAndAdd() { if (!name.trim()) { - error = 'Please enter a playlist name'; + error = $t('playlist.enterName'); return; } diff --git a/src/lib/i18n/locales/de.json b/src/lib/i18n/locales/de.json index e368d1c4e..02e6aba24 100644 --- a/src/lib/i18n/locales/de.json +++ b/src/lib/i18n/locales/de.json @@ -272,6 +272,8 @@ "newPlaylist": "Neue Playlist", "editPlaylist": "Playlist bearbeiten", "addToPlaylist": "Zur Playlist hinzufügen", + "enterName": "Bitte gib einen Playlist-Namen ein", + "selectPlaylist": "Bitte wähle eine Playlist", "duplicates": { "title": "Einige dieser Titel wurden bereits hinzugefügt", "description": "Diese Playlist enthält bereits {duplicateCount} der {totalCount} Titel, die du hinzufügst. Füge nur die neuen hinzu oder füge alle einschließlich Duplikate hinzu.", diff --git a/src/lib/i18n/locales/en.json b/src/lib/i18n/locales/en.json index d880bce64..e8edd293c 100644 --- a/src/lib/i18n/locales/en.json +++ b/src/lib/i18n/locales/en.json @@ -274,6 +274,8 @@ "createAndAdd": "Create & Add", "playlistWithTracks": "{name} ({count} tracks)", "copyToLibrary": "Copy to library", + "enterName": "Please enter a playlist name", + "selectPlaylist": "Please select a playlist", "duplicates": { "title": "Some of these tracks were already added", "description": "This playlist already contains {duplicateCount} of the {totalCount} tracks you're adding. Add only the new ones, or add everything including duplicates.", diff --git a/src/lib/i18n/locales/es.json b/src/lib/i18n/locales/es.json index 095ecbc4c..4ee1d353f 100644 --- a/src/lib/i18n/locales/es.json +++ b/src/lib/i18n/locales/es.json @@ -274,6 +274,8 @@ "createAndAdd": "Crear y Agregar", "playlistWithTracks": "{name} ({count} pistas)", "copyToLibrary": "Copiar a mi biblioteca", + "enterName": "Ingresa un nombre para la lista", + "selectPlaylist": "Selecciona una lista", "duplicates": { "title": "Algunas de estas pistas ya fueron agregadas", "description": "Esta lista ya contiene {duplicateCount} de las {totalCount} pistas que estás agregando. Agrega solo las nuevas o agrega todas incluyendo duplicadas.", diff --git a/src/lib/i18n/locales/fr.json b/src/lib/i18n/locales/fr.json index ef6df34e3..55cd981ea 100644 --- a/src/lib/i18n/locales/fr.json +++ b/src/lib/i18n/locales/fr.json @@ -272,6 +272,8 @@ "newPlaylist": "Nouvelle playlist", "editPlaylist": "Modifier la playlist", "addToPlaylist": "Ajouter à la playlist", + "enterName": "Veuillez entrer un nom de playlist", + "selectPlaylist": "Veuillez sélectionner une playlist", "duplicates": { "title": "Certaines de ces pistes ont déjà été ajoutées", "description": "Cette playlist contient déjà {duplicateCount} des {totalCount} pistes que vous ajoutez. Ajoutez uniquement les nouvelles ou ajoutez tout y compris les doublons.",