mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-29 03:44:40 +00:00
fix: translate in core
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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() },
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user