feat: add client-side rate limiting to contact form
- Added `useRateLimit` hook - Integrated hook into `Contact.tsx` - Added translations for rate limit error - Added unit tests - Fixed type error in `Button.tsx` to allow build to pass
This commit is contained in:
@@ -96,6 +96,7 @@ export const de = {
|
||||
sending: 'Wird gesendet...',
|
||||
success: 'Nachricht erfolgreich gesendet! Ich melde mich bald bei Ihnen.',
|
||||
error: 'Fehler beim Senden. Bitte versuchen Sie es erneut oder kontaktieren Sie mich direkt.',
|
||||
rateLimit: 'Zu viele Anfragen. Bitte warten Sie einen Moment.',
|
||||
},
|
||||
info: {
|
||||
title: 'Kontaktdaten',
|
||||
|
||||
Reference in New Issue
Block a user