Add translations to tile state content options (#18428)

This commit is contained in:
Paul Bottein 2023-10-26 12:32:09 +02:00 committed by GitHub
parent c3743b57ea
commit d8c7db6ebf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 10 additions and 2 deletions

View File

@ -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 ?? {})

View File

@ -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",