Add differentiator for Fuels vs Fuel

This commit is contained in:
Neshura 2024-05-23 17:44:53 +02:00
parent b2e3a74dbe
commit 0b5637ca38
Signed by: Neshura
GPG key ID: B6983AAA6B9A7A6C
2 changed files with 5 additions and 1 deletions

View file

@ -181,6 +181,10 @@ const localization = new Map([
["en-GB", "Fuels"], ["en-GB", "Fuels"],
["de-DE", "Treibstoffe"], ["de-DE", "Treibstoffe"],
])], ])],
["fuel", new Map([
["en-GB", "Fuel"],
["de-DE", "Treibstoff"],
])],
["electric", new Map([ ["electric", new Map([
["en-GB", "Electricity"], ["en-GB", "Electricity"],
["de-DE", "Elektrizität"], ["de-DE", "Elektrizität"],

View file

@ -195,7 +195,7 @@
<Separator /> <Separator />
<WeightOutputSegment {i18n} maxWeight={maxWeight} maxVehicleWeight="{maxVehicleWeight}" /> <WeightOutputSegment {i18n} maxWeight={maxWeight} maxVehicleWeight="{maxVehicleWeight}" />
<Separator /> <Separator />
<p>{i18n.localize("fuels")}: <p>{i18n.localize(ship.getFuelTypes().length > 1 ? "fuels" : "fuel")}:
{ship.getFuelTypes().map((fuel) => i18n.localize(fuel.name)).join(", ") } {ship.getFuelTypes().map((fuel) => i18n.localize(fuel.name)).join(", ") }
</p> </p>
</Card.Content> </Card.Content>