mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-28 03:36:44 +00:00
Add translations to tile state content options (#18428)
This commit is contained in:
parent
c3743b57ea
commit
d8c7db6ebf
@ -186,11 +186,15 @@ export class HuiTileCardEditor
|
|||||||
multiple: true,
|
multiple: true,
|
||||||
options: [
|
options: [
|
||||||
{
|
{
|
||||||
label: "State",
|
label: localize(
|
||||||
|
`ui.panel.lovelace.editor.card.tile.state_content_options.state`
|
||||||
|
),
|
||||||
value: "state",
|
value: "state",
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
label: "Last changed",
|
label: localize(
|
||||||
|
`ui.panel.lovelace.editor.card.tile.state_content_options.last-changed`
|
||||||
|
),
|
||||||
value: "last-changed",
|
value: "last-changed",
|
||||||
},
|
},
|
||||||
...Object.keys(stateObj?.attributes ?? {})
|
...Object.keys(stateObj?.attributes ?? {})
|
||||||
|
@ -5114,6 +5114,10 @@
|
|||||||
"vertical": "Vertical",
|
"vertical": "Vertical",
|
||||||
"hide_state": "Hide state",
|
"hide_state": "Hide state",
|
||||||
"state_content": "State content",
|
"state_content": "State content",
|
||||||
|
"state_content_options": {
|
||||||
|
"state": "State",
|
||||||
|
"last-changed": "Last changed"
|
||||||
|
},
|
||||||
"features": {
|
"features": {
|
||||||
"name": "Features",
|
"name": "Features",
|
||||||
"not_compatible": "Not compatible",
|
"not_compatible": "Not compatible",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user