Enhance notification display and localization in MessagesDialog component
- Updated the MessagesDialog component to display notifications with titles and descriptions, improving clarity and user experience. - Enhanced the formatBody method to support new notification structures, including extraction and formatting of parameters for better message presentation. - Added a new formatParams method to handle various parameter types, ensuring accurate representation of values in notifications. - Updated localization files in both German and English to include structured titles and descriptions for random events, enriching the user experience with detailed information.
This commit is contained in:
@@ -24,17 +24,50 @@
|
||||
"waiting": "Transport waiting"
|
||||
},
|
||||
"random_event": {
|
||||
"windfall": "Unexpected windfall: You received {amount}!",
|
||||
"theft": "Theft: {amount} was stolen from your warehouse.",
|
||||
"warehouse_fire": "Warehouse Fire: A fire has damaged your warehouse. Losses: {amount}.",
|
||||
"character_illness": "Illness: {characterName} has fallen ill.",
|
||||
"character_recovery": "Recovery: {characterName} has recovered from the illness.",
|
||||
"character_accident": "Accident: {characterName} has had an accident.",
|
||||
"sudden_infant_death": "Tragedy: {characterName} has suddenly passed away.",
|
||||
"regional_storm": "Regional Storm: A severe storm has hit the region {regionName}.",
|
||||
"regional_festival": "Regional Festival: A festival is taking place in {regionName}.",
|
||||
"regional_epidemic": "Regional Epidemic: An epidemic has struck {regionName}.",
|
||||
"earthquake": "Earthquake: An earthquake has shaken the region {regionName}."
|
||||
"windfall": {
|
||||
"title": "Unexpected Windfall",
|
||||
"description": "You find a forgotten wallet on the street. You receive {amount}."
|
||||
},
|
||||
"theft": {
|
||||
"title": "Theft",
|
||||
"description": "A thief has stolen part of your money. Loss: {amount}."
|
||||
},
|
||||
"warehouse_fire": {
|
||||
"title": "Warehouse Fire",
|
||||
"description": "A fire has damaged parts of your warehouse.{damagePercent}{destructionPercent}"
|
||||
},
|
||||
"character_illness": {
|
||||
"title": "Illness",
|
||||
"description": "{characterName} has fallen ill and lost {healthChange} health."
|
||||
},
|
||||
"character_recovery": {
|
||||
"title": "Recovery",
|
||||
"description": "{characterName} has recovered from an illness and regained {healthChange} health."
|
||||
},
|
||||
"character_accident": {
|
||||
"title": "Accident",
|
||||
"description": "A serious accident has severely injured {characterName}. Health: {healthChange}."
|
||||
},
|
||||
"sudden_infant_death": {
|
||||
"title": "Sudden Infant Death",
|
||||
"description": "{characterName} has suddenly passed away."
|
||||
},
|
||||
"regional_storm": {
|
||||
"title": "Storm in the Region",
|
||||
"description": "A severe storm has hit the region {regionName}."
|
||||
},
|
||||
"regional_festival": {
|
||||
"title": "Regional Festival",
|
||||
"description": "A large festival is taking place in the region {regionName}."
|
||||
},
|
||||
"regional_epidemic": {
|
||||
"title": "Epidemic",
|
||||
"description": "A plague has struck the region {regionName}."
|
||||
},
|
||||
"earthquake": {
|
||||
"title": "Earthquake",
|
||||
"description": "An earthquake has shaken the region {regionName}."
|
||||
}
|
||||
}
|
||||
},
|
||||
"statusbar": {
|
||||
|
||||
Reference in New Issue
Block a user