Add servant management features: Implement endpoints for hiring, dismissing, and setting pay levels for servants in the FalukantController. Update UserHouse model to include servant-related attributes. Enhance frontend components to manage servant details, including staffing state and household order, with corresponding localization updates in multiple languages.

This commit is contained in:
Torsten Schulz (local)
2026-03-22 09:57:44 +01:00
parent 2977b152a2
commit 876ee2ab49
12 changed files with 1661 additions and 17 deletions

View File

@@ -826,8 +826,51 @@
"price": "Kaufpreis",
"worth": "Restwert",
"sell": "Verkaufen",
"sellConfirm": "Möchtest du dein Haus wirklich verkaufen?",
"sellSuccess": "Das Haus wurde verkauft.",
"sellError": "Das Haus konnte nicht verkauft werden.",
"buySuccess": "Das Haus wurde gekauft.",
"buyError": "Das Haus konnte nicht gekauft werden.",
"renovate": "Renovieren",
"renovateAll": "Komplett renovieren",
"servants": {
"title": "Dienerschaft",
"description": "Verwalte Hauspersonal, Ordnung und laufende Kosten deines Haushalts.",
"count": "Dienerzahl",
"expectedRange": "Erwarteter Bereich",
"monthlyCost": "Monatskosten",
"quality": "Qualität",
"householdOrder": "Haushaltsordnung",
"payLevel": "Bezahlung",
"payLevels": {
"low": "Niedrig",
"normal": "Normal",
"high": "Großzügig"
},
"staffingState": {
"label": "Besetzung",
"understaffed": "Unterbesetzt",
"fitting": "Passend",
"overstaffed": "Überbesetzt"
},
"orderState": {
"label": "Ordnungszustand",
"chaotic": "Chaotisch",
"strained": "Angespannt",
"stable": "Stabil",
"excellent": "Vorbildlich"
},
"actions": {
"hire": "1 Diener einstellen",
"dismiss": "1 Diener entlassen",
"hireSuccess": "Die Dienerschaft wurde erweitert.",
"hireError": "Die Dienerschaft konnte nicht erweitert werden.",
"dismissSuccess": "Ein Diener wurde entlassen.",
"dismissError": "Der Diener konnte nicht entlassen werden.",
"payLevelSuccess": "Die Bezahlung der Dienerschaft wurde angepasst.",
"payLevelError": "Die Bezahlung konnte nicht angepasst werden."
}
},
"status": {
"roofCondition": "Dach",
"wallCondition": "Wände",

View File

@@ -149,7 +149,7 @@
"all": "All history"
}
},
"activities": {
"activities": {
"Product sale": "Product sale",
"Production cost": "Production cost",
"Sell all products": "Sell all products",
@@ -181,6 +181,75 @@
}
}
},
"house": {
"title": "House",
"statusreport": "House condition",
"element": "Element",
"state": "Condition",
"buyablehouses": "Buy a house",
"buy": "Buy",
"price": "Purchase price",
"worth": "Residual value",
"sell": "Sell",
"sellConfirm": "Do you really want to sell your house?",
"sellSuccess": "The house has been sold.",
"sellError": "The house could not be sold.",
"buySuccess": "The house has been bought.",
"buyError": "The house could not be bought.",
"renovate": "Renovate",
"renovateAll": "Renovate completely",
"servants": {
"title": "Servants",
"description": "Manage household staff, order and recurring costs in your home.",
"count": "Servant count",
"expectedRange": "Expected range",
"monthlyCost": "Monthly cost",
"quality": "Quality",
"householdOrder": "Household order",
"payLevel": "Pay level",
"payLevels": {
"low": "Low",
"normal": "Normal",
"high": "Generous"
},
"staffingState": {
"label": "Staffing",
"understaffed": "Understaffed",
"fitting": "Fitting",
"overstaffed": "Overstaffed"
},
"orderState": {
"label": "Order state",
"chaotic": "Chaotic",
"strained": "Strained",
"stable": "Stable",
"excellent": "Excellent"
},
"actions": {
"hire": "Hire 1 servant",
"dismiss": "Dismiss 1 servant",
"hireSuccess": "The household staff has been expanded.",
"hireError": "The staff could not be expanded.",
"dismissSuccess": "A servant has been dismissed.",
"dismissError": "The servant could not be dismissed.",
"payLevelSuccess": "Servant pay has been updated.",
"payLevelError": "Servant pay could not be updated."
}
},
"status": {
"roofCondition": "Roof",
"wallCondition": "Walls",
"floorCondition": "Floors",
"windowCondition": "Windows"
},
"type": {
"backyard_room": "Backyard room",
"wooden_house": "Wooden house",
"straw_hut": "Straw hut",
"family_house": "Family house",
"townhouse": "Townhouse"
}
},
"newdirector": {
"title": "New Director",
"age": "Age",

View File

@@ -792,8 +792,51 @@
"price": "Precio de compra",
"worth": "Valor restante",
"sell": "Vender",
"sellConfirm": "¿De verdad quieres vender tu casa?",
"sellSuccess": "La casa ha sido vendida.",
"sellError": "No se pudo vender la casa.",
"buySuccess": "La casa ha sido comprada.",
"buyError": "No se pudo comprar la casa.",
"renovate": "Renovar",
"renovateAll": "Renovar por completo",
"servants": {
"title": "Servicio doméstico",
"description": "Administra el personal, el orden y los costes periódicos de tu casa.",
"count": "Número de sirvientes",
"expectedRange": "Rango esperado",
"monthlyCost": "Coste mensual",
"quality": "Calidad",
"householdOrder": "Orden del hogar",
"payLevel": "Pago",
"payLevels": {
"low": "Bajo",
"normal": "Normal",
"high": "Generoso"
},
"staffingState": {
"label": "Dotación",
"understaffed": "Insuficiente",
"fitting": "Adecuada",
"overstaffed": "Excesiva"
},
"orderState": {
"label": "Estado del orden",
"chaotic": "Caótico",
"strained": "Tenso",
"stable": "Estable",
"excellent": "Excelente"
},
"actions": {
"hire": "Contratar 1 sirviente",
"dismiss": "Despedir 1 sirviente",
"hireSuccess": "Se ha ampliado el servicio doméstico.",
"hireError": "No se pudo ampliar el servicio doméstico.",
"dismissSuccess": "Se ha despedido a un sirviente.",
"dismissError": "No se pudo despedir al sirviente.",
"payLevelSuccess": "Se ha ajustado el pago del servicio.",
"payLevelError": "No se pudo ajustar el pago."
}
},
"status": {
"roofCondition": "Techo",
"wallCondition": "Paredes",