diff --git a/web/src/lib/components/shared-components/drag-and-drop-upload-overlay.svelte b/web/src/lib/components/shared-components/drag-and-drop-upload-overlay.svelte index 59b9a210c2..dc115c45b4 100644 --- a/web/src/lib/components/shared-components/drag-and-drop-upload-overlay.svelte +++ b/web/src/lib/components/shared-components/drag-and-drop-upload-overlay.svelte @@ -5,7 +5,6 @@ import { dragAndDropFilesStore } from '$lib/stores/drag-and-drop-files.store'; import { fileUploadHandler } from '$lib/utils/file-uploader'; import { isAlbumsRoute, isSharedLinkRoute } from '$lib/utils/navigation'; - import { t } from 'svelte-i18n'; $: albumId = isAlbumsRoute($page.route?.id) ? $page.params.albumId : undefined; $: isShare = isSharedLinkRoute($page.route?.id); @@ -13,7 +12,7 @@ let dragStartTarget: EventTarget | null = null; const onDragEnter = (e: DragEvent) => { - if (e.dataTransfer && e.dataTransfer.types.includes($t('files'))) { + if (e.dataTransfer && e.dataTransfer.types.includes('Files')) { dragStartTarget = e.target; } }; diff --git a/web/src/lib/i18n/en.json b/web/src/lib/i18n/en.json index 5cdd5086ca..89306debad 100644 --- a/web/src/lib/i18n/en.json +++ b/web/src/lib/i18n/en.json @@ -450,7 +450,6 @@ "file_name": "File name", "file_name_or_extension": "File name or extension", "filename": "Filename", - "files": "Files", "filetype": "Filetype", "filter_people": "Filter people", "fix_incorrect_match": "Fix incorrect match",