Added forgotten label localization (#2672)

This commit is contained in:
yosilevy 2019-02-04 07:24:29 +02:00 committed by Paulus Schoutsen
parent 024ce5c379
commit 18fc0d0342
3 changed files with 12 additions and 4 deletions

View File

@ -81,7 +81,9 @@ class HaDeviceCard extends EventsMixin(LocalizeMixin(PolymerElement)) {
slot="dropdown-content"
selected="[[_computeSelectedArea(areas, device)]]"
>
<paper-item>No Area</paper-item>
<paper-item>
[[localize('ui.panel.config.integrations.config_entry.no_area')]]
</paper-item>
<template is="dom-repeat" items="[[areas]]">
<paper-item area="[[item]]">[[item.name]]</paper-item>
</template>

View File

@ -98,7 +98,11 @@ export class HuiCardOptions extends LitElement {
slot="dropdown-trigger"
></paper-icon-button>
<paper-listbox slot="dropdown-content">
<paper-item @click="${this._moveCard}">Move Card</paper-item>
<paper-item @click="${this._moveCard}"
>${this.hass!.localize(
"ui.panel.lovelace.editor.edit_card.move"
)}</paper-item
>
<paper-item @click="${this._deleteCard}"
>${this.hass!.localize(
"ui.panel.lovelace.editor.edit_card.delete"

View File

@ -774,7 +774,8 @@
"hub": "Connected via",
"firmware": "Firmware: {version}",
"device_unavailable": "device unavailable",
"entity_unavailable": "entity unavailable"
"entity_unavailable": "entity unavailable",
"no_area": "No Area"
}
},
"users": {
@ -847,7 +848,8 @@
"toggle_editor": "Toggle Editor",
"add": "Add Card",
"edit": "Edit",
"delete": "Delete"
"delete": "Delete",
"move": "Move"
},
"save_config": {
"header": "Take control of your Lovelace UI",