Translation files: the form messages of the cms-client package come from nl.json

Block cmsClient.contact holds the field errors, fallback, waiting time (one
and other), too-large, captcha-required, failure and sending label.
src/i18n/cmsClientMessages.ts builds the ContactMessages object for
useContactForm; a test checks that it says the same as the package's own
Dutch defaults, which stay as the fallback.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
This commit is contained in:
2026-11-16 00:30:01 +01:00
co-authored by Claude Sonnet 5.5
parent 85370351d0
commit e7bae5edd7
6 changed files with 96 additions and 2 deletions
+35
View File
@@ -887,5 +887,40 @@
"description": "Lees hoe Andrea Slop Fotografie omgaat met je persoonsgegevens en met de foto's die tijdens een fotoshoot gemaakt worden."
}
}
},
"cmsClient": {
"contact": {
"fieldErrors": {
"name": {
"required": "Vul je naam in.",
"tooLong": "De naam is te lang.",
"invalid": "Deze naam is ongeldig."
},
"email": {
"required": "Vul je e-mailadres in.",
"tooLong": "Het e-mailadres is te lang.",
"invalid": "Dit e-mailadres is ongeldig."
},
"subject": {
"required": "Kies een onderwerp.",
"tooLong": "Dit onderwerp is te lang.",
"invalid": "Kies een onderwerp."
},
"message": {
"required": "Schrijf hier je vraag.",
"tooLong": "Het bericht is te lang.",
"invalid": "Dit bericht bevat ongeldige tekens."
}
},
"fallbackFieldError": "Controleer dit veld.",
"rateLimited": {
"one": "Je hebt net al een bericht gestuurd. Probeer het over {minutes} minuut opnieuw.",
"other": "Je hebt net al een bericht gestuurd. Probeer het over {minutes} minuten opnieuw."
},
"tooLarge": "Je bericht is te groot.",
"captchaRequired": "Bevestig eerst dat je geen robot bent.",
"failed": "Versturen lukte niet. Probeer het later nog eens of mail naar {address}.",
"sendingLabel": "Versturen…"
}
}
}