From 8730c122fd54736da4fbb3fdd57fa9d8c6486a83 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Fri, 4 Feb 2022 17:22:37 +0100 Subject: [PATCH] Allow translate gas total (#11547) --- .../lovelace/cards/energy/hui-energy-sources-table-card.ts | 6 +++++- src/translations/en.json | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/panels/lovelace/cards/energy/hui-energy-sources-table-card.ts b/src/panels/lovelace/cards/energy/hui-energy-sources-table-card.ts index 5c1b21a992..136d4fd81c 100644 --- a/src/panels/lovelace/cards/energy/hui-energy-sources-table-card.ts +++ b/src/panels/lovelace/cards/energy/hui-energy-sources-table-card.ts @@ -538,7 +538,11 @@ export class HuiEnergySourcesTableCard ${types.gas ? html` - Gas total + + ${this.hass.localize( + "ui.panel.lovelace.cards.energy.energy_sources_table.gas_total" + )} + diff --git a/src/translations/en.json b/src/translations/en.json index e804716cf5..034810a867 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -3145,6 +3145,7 @@ }, "energy_sources_table": { "grid_total": "Grid total", + "gas_total": "Gas total", "source": "Source", "energy": "Energy", "cost": "Cost",