Implement age validation for political applications in FalukantService: Added MIN_AGE_POLITICS_DAYS constant and logic to check user age before allowing applications. Updated PoliticsView to reflect age eligibility and display appropriate hints. Enhanced error handling for age-related restrictions.

This commit is contained in:
Torsten Schulz (local)
2026-02-06 00:00:11 +01:00
parent 23b0c45518
commit 6b96ee9856
4 changed files with 33 additions and 14 deletions

View File

@@ -1030,8 +1030,10 @@
"date": "Datum",
"candidacy": "Kandidatur",
"none": "Keine offenen Positionen.",
"apply": "Für ausgewählte Positionen kandidieren"
"apply": "Für ausgewählte Positionen kandidieren",
"minAgeHint": "Kandidatur erst ab 16 Jahren möglich."
},
"too_young": "Dein Charakter ist noch zu jung. Eine Bewerbung ist erst ab 16 Jahren möglich.",
"upcoming": {
"office": "Amt",
"region": "Region",