Add state attribute translations for media players (#89821)

* Add state attribute translations for media players

* Process review comments

* Process review comments

* Fix and extend

* Add yes/no as generic state
This commit is contained in:
Franck Nijhof 2023-03-18 01:24:33 +01:00 committed by GitHub
parent 5f22796b38
commit dbebf8c783
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 120 additions and 0 deletions

View File

@ -30,6 +30,124 @@
"idle": "[%key:common::state::idle%]",
"standby": "[%key:common::state::standby%]",
"buffering": "Buffering"
},
"state_attributes": {
"app_id": {
"name": "App ID"
},
"app_name": {
"name": "App"
},
"entity_picture_local": {
"name": "Local accessible entity picture"
},
"groups_members": {
"name": "Group members"
},
"is_volume_muted": {
"name": "Muted",
"state": {
"true": "[%key:common::state::yes%]",
"false": "[%key:common::state::no%]"
}
},
"media_album_artist": {
"name": "Album artist"
},
"media_album_name": {
"name": "Album"
},
"media_artist": {
"name": "Artist"
},
"media_channel": {
"name": "Channel"
},
"media_content_id": {
"name": "Content ID"
},
"media_content_type": {
"name": "Content type",
"state": {
"album": "Album",
"app": "App",
"artist": "Artist",
"channel": "Channel",
"channels": "Channels",
"composer": "Composer",
"contributing_artist": "Contributing artist",
"episode": "Episode",
"game": "Game",
"genre": "Genre",
"image": "Image",
"movie": "Movie",
"music": "Music",
"playlist": "Playlist",
"podcast": "Podcast",
"season": "Season",
"track": "Track",
"tvshow": "TV show",
"url": "URL",
"video": "Video"
}
},
"media_duration": {
"name": "Duration"
},
"media_episode": {
"name": "Episode"
},
"media_playlist": {
"name": "Playlist"
},
"media_position": {
"name": "Position"
},
"media_position_updated_at": {
"name": "Position updated"
},
"media_title": {
"name": "Title"
},
"media_track": {
"name": "Track"
},
"media_season": {
"name": "Season"
},
"media_series_title": {
"name": "Series"
},
"repeat": {
"name": "Repeat",
"state": {
"all": "All",
"off": "Off",
"one": "One"
}
},
"shuffle": {
"name": "Shuffle",
"state": {
"true": "[%key:common::state::on%]",
"false": "[%key:common::state::off%]"
}
},
"source": {
"name": "Source"
},
"source_list": {
"name": "Available sources"
},
"sound_mode": {
"name": "Sound mode"
},
"sound_mode_list": {
"name": "Available sound modes"
},
"volume_level": {
"name": "Volume"
}
}
},
"tv": {

View File

@ -3,6 +3,8 @@
"state": {
"off": "Off",
"on": "On",
"yes": "Yes",
"no": "No",
"open": "Open",
"closed": "Closed",
"connected": "Connected",