Skip to content

Commit

Permalink
Add translations to tile state content options (#18428)
Browse files Browse the repository at this point in the history
  • Loading branch information
piitaya authored Oct 26, 2023
1 parent c3743b5 commit d8c7db6
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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 ?? {})
Expand Down
4 changes: 4 additions & 0 deletions src/translations/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -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",
Expand Down

0 comments on commit d8c7db6

Please sign in to comment.