H2: Hero-module (tabellen en migratie, beheer-API, publieke GET /hero, afbeeldingsupload met focus, opschoonservice, teksten) en OpenAPI-snapshot

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 15:46:55 +01:00
co-authored by Claude Sonnet 5.5
parent 43925cbf37
commit ae04120d8c
31 changed files with 4221 additions and 3 deletions
@@ -0,0 +1,54 @@
{
"hero": {
"validation": {
"title": {
"required": "A title is required.",
"tooLong": "The title can have at most {max} characters.",
"tooManyLines": "The title can have at most {max} lines."
},
"tagline": {
"tooLong": "The tagline can have at most {max} characters."
},
"lead": {
"tooLong": "The introduction can have at most {max} characters."
},
"display": {
"invalid": "The display must be 'single' or 'slideshow'."
},
"button": {
"incomplete": "A button needs both a label and a target.",
"labelTooLong": "The button label can have at most {max} characters.",
"targetTooLong": "The button target can have at most {max} characters.",
"targetInvalid": "Choose an #anchor, a /path or an https:// address.",
"tooMany": "At most {max} buttons are possible."
},
"schedule": {
"endAfterStart": "The end must be after the start."
},
"slide": {
"imageRequired": "Every slide needs an image.",
"imageUnknown": "An image of a slide does not exist (any more).",
"altRequired": "Give a description (alt text) or mark the image as decorative.",
"altTooLong": "The alt text can have at most {max} characters.",
"idUnknown": "A slide does not belong to this hero."
},
"focus": {
"invalid": "The focus point must be between 0 and 1 and the zoom between 1 and {maxZoom}."
}
},
"image": {
"inUse": "This image is still used by a slide.",
"notFound": "This image does not exist.",
"rejected": {
"tooLarge": "The image is too large (at most {max} MB).",
"unsupportedFormat": "This file type is not supported. Choose a JPEG, PNG, WebP or another common image file.",
"corrupt": "The image could not be read or is damaged.",
"tooManyPixels": "The image has too many pixels. Choose a smaller image.",
"timeout": "Processing the image took too long. Try a smaller image.",
"busy": "Other images are being processed. Try again in a moment.",
"unavailable": "Uploading images is not available at the moment."
},
"storageFull": "There is not enough storage space for this image."
}
}
}
@@ -0,0 +1,54 @@
{
"hero": {
"validation": {
"title": {
"required": "Een titel is verplicht.",
"tooLong": "De titel mag maximaal {max} tekens bevatten.",
"tooManyLines": "De titel mag maximaal {max} regels hebben."
},
"tagline": {
"tooLong": "De tagline mag maximaal {max} tekens bevatten."
},
"lead": {
"tooLong": "De introductietekst mag maximaal {max} tekens bevatten."
},
"display": {
"invalid": "De weergave moet 'enkel' of 'diavoorstelling' zijn."
},
"button": {
"incomplete": "Een knop heeft zowel een tekst als een doel nodig.",
"labelTooLong": "De knoptekst mag maximaal {max} tekens bevatten.",
"targetTooLong": "Het doel van een knop mag maximaal {max} tekens bevatten.",
"targetInvalid": "Kies een #anker, een /pad of een https://-adres.",
"tooMany": "Er zijn maximaal {max} knoppen mogelijk."
},
"schedule": {
"endAfterStart": "Het einde moet na het begin liggen."
},
"slide": {
"imageRequired": "Elke slide heeft een afbeelding nodig.",
"imageUnknown": "Een afbeelding van een slide bestaat niet (meer).",
"altRequired": "Geef een beschrijving (alt-tekst) of markeer de afbeelding als decoratief.",
"altTooLong": "De alt-tekst mag maximaal {max} tekens bevatten.",
"idUnknown": "Een slide hoort niet bij deze hero."
},
"focus": {
"invalid": "Het focuspunt moet tussen 0 en 1 liggen en de zoom tussen 1 en {maxZoom}."
}
},
"image": {
"inUse": "Deze afbeelding wordt nog gebruikt door een slide.",
"notFound": "Deze afbeelding bestaat niet.",
"rejected": {
"tooLarge": "De afbeelding is te groot (maximaal {max} MB).",
"unsupportedFormat": "Dit bestandstype wordt niet ondersteund. Kies een JPEG-, PNG-, WebP- of ander gangbaar afbeeldingsbestand.",
"corrupt": "De afbeelding kon niet worden gelezen of is beschadigd.",
"tooManyPixels": "De afbeelding heeft te veel pixels. Kies een kleinere afbeelding.",
"timeout": "Het verwerken van de afbeelding duurde te lang. Probeer een kleinere afbeelding.",
"busy": "Er worden nu andere afbeeldingen verwerkt. Probeer het zo opnieuw.",
"unavailable": "Afbeeldingen uploaden is op dit moment niet beschikbaar."
},
"storageFull": "Er is te weinig opslagruimte voor deze afbeelding."
}
}
}