Add missing translations to ha-device-entities-card (#5908)

pull/5927/head
Maciej Bieniek 2020-05-18 21:54:58 +02:00 committed by GitHub
parent c9e8bd2e5d
commit 23c68d17e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 11 additions and 3 deletions

View File

@ -72,7 +72,11 @@ export class HaDeviceEntitiesCard extends LitElement {
class="show-more" class="show-more"
@click=${this._toggleShowDisabled} @click=${this._toggleShowDisabled}
> >
+${disabledEntities.length} disabled entities ${this.hass.localize(
"ui.panel.config.devices.entities.disabled_entities",
"count",
disabledEntities.length
)}
</button> </button>
` `
: html` : html`
@ -83,7 +87,9 @@ export class HaDeviceEntitiesCard extends LitElement {
class="show-more" class="show-more"
@click=${this._toggleShowDisabled} @click=${this._toggleShowDisabled}
> >
Hide disabled ${this.hass.localize(
"ui.panel.config.devices.entities.hide_disabled"
)}
</button> </button>
` `
: ""} : ""}

View File

@ -1230,7 +1230,9 @@
"entities": { "entities": {
"entities": "Entities", "entities": "Entities",
"add_entities_lovelace": "Add to Lovelace", "add_entities_lovelace": "Add to Lovelace",
"none": "This device has no entities" "none": "This device has no entities",
"hide_disabled": "Hide disabled",
"disabled_entities": "+{count} {count, plural,\n one {disabled entity}\n other {disabled entities}\n}"
}, },
"scripts": "Scripts", "scripts": "Scripts",
"scenes": "Scenes", "scenes": "Scenes",