diff --git a/resources/lang/en.json b/resources/lang/en.json index 34d9b0d4b..030f08916 100644 --- a/resources/lang/en.json +++ b/resources/lang/en.json @@ -406,6 +406,13 @@ "retreating": "retreating", "boat": "Boat" }, + "unit_info_modal": { + "structure_info": "Structure Info", + "unit_type_unknown": "Unknown", + "close": "Close", + "cooldown": "Cooldown", + "type": "Type" + }, "relation": { "hostile": "Hostile", "distrustful": "Distrustful", diff --git a/src/client/graphics/layers/UnitInfoModal.ts b/src/client/graphics/layers/UnitInfoModal.ts index 131f9c028..0066aa309 100644 --- a/src/client/graphics/layers/UnitInfoModal.ts +++ b/src/client/graphics/layers/UnitInfoModal.ts @@ -1,5 +1,6 @@ import { LitElement, css, html } from "lit"; import { customElement, property } from "lit/decorators.js"; +import { translateText } from "../../../client/Utils"; import { UnitType } from "../../../core/game/Game"; import { GameView, UnitView } from "../../../core/game/GameView"; import { Layer } from "./Layer"; @@ -133,14 +134,17 @@ export class UnitInfoModal extends LitElement implements Layer { .x}px; top: ${this.y}px; position: absolute;" >