From 82a464f50f69c8684f008b85cc2271d9485ad3da Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Mon, 23 Oct 2023 16:37:27 +0200 Subject: [PATCH] Add translation to numeric condition card --- .../conditions/types/ha-card-condition-numeric_state.ts | 5 +++-- src/translations/en.json | 4 +++- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/src/panels/lovelace/editor/conditions/types/ha-card-condition-numeric_state.ts b/src/panels/lovelace/editor/conditions/types/ha-card-condition-numeric_state.ts index 001fb38bd3..7804195fcb 100644 --- a/src/panels/lovelace/editor/conditions/types/ha-card-condition-numeric_state.ts +++ b/src/panels/lovelace/editor/conditions/types/ha-card-condition-numeric_state.ts @@ -97,9 +97,10 @@ export class HaCardConditionNumericState extends LitElement { case "entity": return this.hass.localize("ui.components.entity.entity-picker.entity"); case "below": - return "Below"; case "above": - return "Above"; + return this.hass.localize( + `ui.panel.lovelace.editor.condition-editor.condition.numeric_state.${schema.name}` + ); default: return ""; } diff --git a/src/translations/en.json b/src/translations/en.json index e25d7fefe9..ca3319bf3b 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -4759,7 +4759,9 @@ "add": "Add condition", "condition": { "numeric_state": { - "label": "Entity numeric state" + "label": "Entity numeric state", + "above": "Above", + "below": "Below" }, "screen": { "label": "Screen",