translated text

This commit is contained in:
bijx
2026-01-10 03:53:43 -05:00
parent b0bcf00c9c
commit ff6b793802
2 changed files with 8 additions and 1 deletions
+1
View File
@@ -691,6 +691,7 @@
"retreating": "retreating",
"retaliate": "Retaliate",
"boat": "Boat",
"seconds_abbrev": "{seconds}s",
"alliance_request_status": "{name} {status} your alliance request",
"alliance_accepted": "accepted",
"alliance_rejected": "rejected",
+7 -1
View File
@@ -930,12 +930,18 @@ export class EventsDisplay extends LitElement implements Layer {
<div class="flex flex-wrap gap-y-1 gap-x-2">
${this.outgoingBoats.map((boat) => {
const etaSeconds = this.estimateBoatEtaSeconds(boat);
const etaText =
etaSeconds !== null
? translateText("events_display.seconds_abbrev", {
seconds: etaSeconds,
})
: "";
return html`
<div class="inline-flex items-center gap-1">
${this.renderButton({
content: html`${translateText("events_display.boat")}:
${renderTroops(boat.troops())}${etaSeconds !== null
? html` (${etaSeconds}s)`
? html` (${etaText})`
: ""}`,
onClick: () => this.emitGoToUnitEvent(boat),
className: "text-left text-blue-400",