fix: translate in core

This commit is contained in:
Rj Manhas
2025-11-11 17:21:50 -07:00
parent 16ac6a3fe7
commit 5c741d0dec
2 changed files with 5 additions and 2 deletions
+2 -1
View File
@@ -580,7 +580,8 @@
"alliance_renewed": "Your alliance with {name} has been renewed",
"wants_to_renew_alliance": "{name} wants to renew your alliance",
"ignore": "Ignore",
"unit_voluntarily_deleted": "Unit voluntarily deleted"
"unit_voluntarily_deleted": "Unit voluntarily deleted",
"enemy_boat_destroyed": "{name} boat was destroyed"
},
"unit_info_modal": {
"structure_info": "Structure Info",
+3 -1
View File
@@ -275,9 +275,11 @@ export class UnitImpl implements Unit {
const targetOwner = this.mg.owner(targetTile);
if (targetOwner.isPlayer() && targetOwner !== this._owner) {
this.mg.displayMessage(
`${this._owner.displayName()} boat was destroyed`,
"events_display.enemy_boat_destroyed",
MessageType.UNIT_DESTROYED,
targetOwner.id(),
undefined,
{ name: this._owner.displayName() },
);
}
}