mirror of
https://github.com/openfrontio/OpenFrontIO.git
synced 2026-06-22 17:16:38 +00:00
translated text
This commit is contained in:
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user