feat(falukant): enhance notification handling and localization updates
All checks were successful
Deploy to production / deploy (push) Successful in 2m52s

- Updated the `enrichNotificationsWithCharacterNames` method in FalukantService to include region name enrichment and handle additional character IDs.
- Introduced a new `serializeNotificationForClient` function to format notifications for the client, ensuring all relevant data is included.
- Enhanced the MessagesDialog component to merge notification payloads and extract parameters more effectively, improving the clarity of displayed messages.
- Added new localization entries for director resignation risk and regional festival effects in multiple languages, ensuring comprehensive user notifications.
This commit is contained in:
Torsten Schulz (local)
2026-04-14 08:06:56 +02:00
parent 9deda3147e
commit 26daf5fed5
7 changed files with 230 additions and 43 deletions

View File

@@ -49,7 +49,7 @@
"notify_election_created": "Une nouvelle élection a été déclenchée.",
"notify_office_filled": "Une fonction politique a été pourvue.",
"director": {
"resignation_risk_high": "Risque élevé de démission dun directeur : risque {risk_percent}% (seuil {threshold_percent}%). Satisfaction actuelle {satisfaction}."
"resignation_risk_high": "Risque élevé de démission du directeur {directorName} : risque {risk_percent}% (seuil {threshold_percent}%). Satisfaction actuelle {satisfaction}."
},
"director_death": "{characterName} est décédé à l'âge de {ageYears}. En tant qu'employeur, vous devez remplir le conseil d'administration.{regionLabel}{spouses}{children}{lovers}",
"relationship_death": "{characterName} est décédé à l'âge de {ageYears}.{regionLabel}{spouses}{children}{lovers}",
@@ -95,7 +95,13 @@
},
"regional_festival": {
"title": "Fête régionale",
"description": "Un grand festival a lieu dans la région {regionName}."
"description": "Un grand festival a lieu dans la région {regionName}.{priceEffectLine}"
},
"effects": {
"price_effect_suffix": " Effet : variation attendue des prix des marchandises ~{percent} %.",
"festival_weather_line": "Le temps dans la région change.",
"festival_price_line": "Prix des marchandises ~{percent} %.",
"festival_quality_line": "Qualité de production ~{change}."
},
"regional_epidemic": {
"title": "Épidémie",