fix(playlist): migrate duplicate modal to Svelte 5 and add i18n

Migrate PlaylistDuplicateConfirmModal from Svelte 4 (export let,
createEventDispatcher, on:click) to Svelte 5 ($props, callback
props, onclick). Replace hardcoded English strings with i18n keys
under playlist.duplicates for all 4 locales (en, es, de, fr).
This commit is contained in:
vicrodh committed 2026-02-09 17:13:23 -06:00
1 parent ae1a3533a8
commit f85d04fa68
6 files changed
+69 -43

No files matched your search

+8 -1
View File
@@ -273,7 +273,14 @@
"hideFromSidebar": "Hide from sidebar",
"createAndAdd": "Create & Add",
"playlistWithTracks": "{name} ({count} tracks)",
"copyToLibrary": "Copy to library"
"copyToLibrary": "Copy to library",
"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.",
"addAll": "Add all tracks",
"addNew": "Add only new tracks",
"adding": "Adding..."
}
},
"sort": {
"nameAZ": "Name (A-Z)",