Add error handling for nobility advancement in NobilityView: Implemented specific error messages for cooldown and unmet requirements, enhancing user feedback during advancement attempts.

This commit is contained in:
Torsten Schulz (local)
2026-02-09 12:03:59 +01:00
parent 8c40144734
commit c779be2897
3 changed files with 35 additions and 2 deletions

View File

@@ -738,7 +738,12 @@
"advance": {
"confirm": "Aufsteigen beantragen"
},
"cooldown": "Du kannst frühestens wieder am {date} aufsteigen."
"cooldown": "Du kannst frühestens wieder am {date} aufsteigen.",
"errors": {
"tooSoon": "Aufstieg zu früh.",
"unmet": "Folgende Voraussetzungen fehlen:",
"generic": "Der Aufstieg ist fehlgeschlagen."
}
},
"reputation": {
"title": "Reputation",

View File

@@ -196,7 +196,12 @@
}
},
"nobility": {
"cooldown": "You can only advance again on {date}."
"cooldown": "You can only advance again on {date}.",
"errors": {
"tooSoon": "Advancement too soon.",
"unmet": "The following requirements are not met:",
"generic": "Advancement failed."
}
},
"branchProduction": {
"storageAvailable": "Free storage"