Update ImagePreview.svelte

This commit is contained in:
Classic298
2025-09-25 07:54:58 +02:00
committed by GitHub
parent ab30b105e2
commit e201dc995c

View File

@@ -103,7 +103,7 @@
const mimeType = blob.type || 'image/png'; const mimeType = blob.type || 'image/png';
// create file name based on the MIME type, alt should be a valid file name with extension // create file name based on the MIME type, alt should be a valid file name with extension
const fileName = `${$i18n const fileName = `${$i18n
.t('AI Generated Image') .t('Generated Image')
.toLowerCase() .toLowerCase()
.replace(/ /g, '_')}.${mimeType.split('/')[1]}`; .replace(/ /g, '_')}.${mimeType.split('/')[1]}`;
@@ -123,7 +123,7 @@
// create file name based on the MIME type, alt should be a valid file name with extension // create file name based on the MIME type, alt should be a valid file name with extension
const fileName = `${$i18n const fileName = `${$i18n
.t('AI Generated Image') .t('Generated Image')
.toLowerCase() .toLowerCase()
.replace(/ /g, '_')}.${mimeType.split('/')[1]}`; .replace(/ /g, '_')}.${mimeType.split('/')[1]}`;
@@ -151,7 +151,7 @@
// create file name based on the MIME type, alt should be a valid file name with extension // create file name based on the MIME type, alt should be a valid file name with extension
const fileName = `${$i18n const fileName = `${$i18n
.t('AI Generated Image') .t('Generated Image')
.toLowerCase() .toLowerCase()
.replace(/ /g, '_')}.${mimeType.split('/')[1]}`; .replace(/ /g, '_')}.${mimeType.split('/')[1]}`;