From d8c7db6ebf3b83cd4aad3751c06aff9e7be0bf31 Mon Sep 17 00:00:00 2001 From: Paul Bottein Date: Thu, 26 Oct 2023 12:32:09 +0200 Subject: [PATCH] Add translations to tile state content options (#18428) --- .../editor/config-elements/hui-tile-card-editor.ts | 8 ++++++-- src/translations/en.json | 4 ++++ 2 files changed, 10 insertions(+), 2 deletions(-) diff --git a/src/panels/lovelace/editor/config-elements/hui-tile-card-editor.ts b/src/panels/lovelace/editor/config-elements/hui-tile-card-editor.ts index ebff8fb27d..b4460d7308 100644 --- a/src/panels/lovelace/editor/config-elements/hui-tile-card-editor.ts +++ b/src/panels/lovelace/editor/config-elements/hui-tile-card-editor.ts @@ -186,11 +186,15 @@ export class HuiTileCardEditor multiple: true, options: [ { - label: "State", + label: localize( + `ui.panel.lovelace.editor.card.tile.state_content_options.state` + ), value: "state", }, { - label: "Last changed", + label: localize( + `ui.panel.lovelace.editor.card.tile.state_content_options.last-changed` + ), value: "last-changed", }, ...Object.keys(stateObj?.attributes ?? {}) diff --git a/src/translations/en.json b/src/translations/en.json index 4b7444cb2d..f889df4884 100644 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -5114,6 +5114,10 @@ "vertical": "Vertical", "hide_state": "Hide state", "state_content": "State content", + "state_content_options": { + "state": "State", + "last-changed": "Last changed" + }, "features": { "name": "Features", "not_compatible": "Not compatible",