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:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user