Make "Energy distribution today" translatable (#10696)

This commit is contained in:
Philip Allgaier 2021-11-29 10:09:54 +01:00 committed by GitHub
parent 0b7fc177f9
commit 5614e0d29c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 4 additions and 1 deletions

View File

@ -425,7 +425,9 @@ export const generateDefaultViewConfig = (
if (grid && grid.flow_from.length > 0) {
areaCards.push({
title: "Energy distribution today",
title: localize(
"ui.panel.lovelace.cards.energy.energy_distribution.title_today"
),
type: "energy-distribution",
link_dashboard: true,
});

View File

@ -3030,6 +3030,7 @@
"grid_neutrality_not_calculated": "Grid neutrality could not be calculated"
},
"energy_distribution": {
"title_today": "Energy distribution today",
"grid": "Grid",
"gas": "Gas",
"solar": "Solar",