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",

View File

@@ -364,8 +364,10 @@
"date": "Date",
"candidacy": "Candidacy",
"none": "No open positions.",
"apply": "Apply for selected positions"
"apply": "Apply for selected positions",
"minAgeHint": "Candidacy is only possible from age 16."
},
"too_young": "Your character is too young. Applications are only possible from age 16.",
"upcoming": {
"office": "Office",
"region": "Region",