feat(family): enhance family view and character pregnancy handling
All checks were successful
Deploy to production / deploy (push) Successful in 2m48s

- Updated the FalukantCharacter model to include a default scope that excludes pregnancy-related fields for compatibility with older databases.
- Implemented a new method in FalukantService to conditionally retrieve pregnancy information based on database schema.
- Enhanced the FamilyView component to display a summary navigation for family relationships, including partners, children, and lovers.
- Updated internationalization files to include new translations for family-related terms and summaries.
This commit is contained in:
Torsten Schulz (local)
2026-03-30 14:36:02 +02:00
parent f35db4b1a1
commit 2b83c45e97
6 changed files with 307 additions and 79 deletions

View File

@@ -607,6 +607,21 @@
}
},
"family": {
"title": "Family",
"heroIntro": "Relationships, children and development — organized by section below.",
"summary": {
"partnerChip": "Partner",
"childrenChip": "Children",
"loversChip": "Affairs",
"proposalsAvailable": "Betrothal available",
"noPartner": "No partner"
},
"tabs": {
"partner": "Partner & marriage",
"children": "Children",
"lovers": "Affairs"
},
"tabsAria": "Family sections",
"debtorsPrison": {
"familyWarning": "Ongoing debt delinquency puts strain on marriage, household and affairs.",
"familyImpact": "Debtors' prison damages marriage, household peace and the stability of affairs."
@@ -653,6 +668,7 @@
}
},
"spouse": {
"traitsToggle": "Character traits",
"marriageSatisfaction": "Marriage Satisfaction",
"marriageState": "Marriage State",
"wooing": {