feat: Implement push notification functionality in AddToCartButton, including subscription management and UI updates, and enhance translations for related error messages across multiple locales

This commit is contained in:
sebseb7
2026-03-25 07:57:34 +01:00
parent 0ce8ce3626
commit af6893b5b0
4 changed files with 349 additions and 32 deletions

View File

@@ -39,6 +39,10 @@ export default {
"messagePlaceholder": "Zusätzliche Informationen oder Fragen...",
"submitAvailability": "Verfügbarkeit anfragen",
"pushNotifyPermissionDenied": "Benachrichtigungen wurden nicht erlaubt.",
"pushNotifyServerDisabled": "Push-Benachrichtigungen sind auf dem Server nicht aktiv.",
"pushNotifyError": "Benachrichtigung konnte nicht geändert werden.",
"photoUploadSelect": "Fotos auswählen",
"photoUploadErrorMaxFiles": "Maximal {{max}} Dateien erlaubt",
"photoUploadErrorFileType": "Nur Bilddateien (JPEG, PNG, GIF, WebP) sind erlaubt",

View File

@@ -39,6 +39,10 @@ export default {
"messagePlaceholder": "Additional information or questions...", // Zusätzliche Informationen oder Fragen...
"submitAvailability": "Request availability", // Verfügbarkeit anfragen
"pushNotifyPermissionDenied": "Notifications were not allowed.",
"pushNotifyServerDisabled": "Push notifications are not enabled on the server.",
"pushNotifyError": "Could not update notification settings.",
"photoUploadSelect": "Select photos", // Fotos auswählen
"photoUploadErrorMaxFiles": "Maximum {{max}} files allowed", // Maximal {{max}} Dateien erlaubt
"photoUploadErrorFileType": "Only image files (JPEG, PNG, GIF, WebP) are allowed", // Nur Bilddateien (JPEG, PNG, GIF, WebP) sind erlaubt