Localize tabs names in view editor (#4954)

* Localize tabs

* remove Polish localization
This commit is contained in:
Tomasz 2020-02-22 15:00:01 +01:00 committed by GitHub
parent 6e35c79c14
commit b41369a2ad
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 13 additions and 3 deletions

View File

@ -142,8 +142,16 @@ export class HuiEditView extends LitElement {
.selected="${this._curTabIndex}"
@selected-item-changed="${this._handleTabSelected}"
>
<paper-tab id="tab-settings">Settings</paper-tab>
<paper-tab id="tab-badges">Badges</paper-tab>
<paper-tab id="tab-settings"
>${this.hass!.localize(
"ui.panel.lovelace.editor.edit_view.tab_settings"
)}</paper-tab
>
<paper-tab id="tab-badges"
>${this.hass!.localize(
"ui.panel.lovelace.editor.edit_view.tab_badges"
)}</paper-tab
>
</paper-tabs>
<paper-dialog-scrollable> ${content} </paper-dialog-scrollable>
<div class="paper-dialog-buttons">

View File

@ -1773,7 +1773,9 @@
"edit": "Edit view",
"delete": "Delete view",
"move_left": "Move view left",
"move_right": "Move view right"
"move_right": "Move view right",
"tab_settings": "Settings",
"tab_badges": "Badges"
},
"edit_card": {
"header": "Card Configuration",