From b41369a2ad0171e0327d8371731aba934562b9e1 Mon Sep 17 00:00:00 2001 From: Tomasz Date: Sat, 22 Feb 2020 15:00:01 +0100 Subject: [PATCH] Localize tabs names in view editor (#4954) * Localize tabs * remove Polish localization --- .../lovelace/editor/view-editor/hui-edit-view.ts | 12 ++++++++++-- src/translations/en.json | 4 +++- 2 files changed, 13 insertions(+), 3 deletions(-) diff --git a/src/panels/lovelace/editor/view-editor/hui-edit-view.ts b/src/panels/lovelace/editor/view-editor/hui-edit-view.ts index 5750a1e261..1c44cc168a 100644 --- a/src/panels/lovelace/editor/view-editor/hui-edit-view.ts +++ b/src/panels/lovelace/editor/view-editor/hui-edit-view.ts @@ -142,8 +142,16 @@ export class HuiEditView extends LitElement { .selected="${this._curTabIndex}" @selected-item-changed="${this._handleTabSelected}" > - Settings - Badges + ${this.hass!.localize( + "ui.panel.lovelace.editor.edit_view.tab_settings" + )} + ${this.hass!.localize( + "ui.panel.lovelace.editor.edit_view.tab_badges" + )} ${content}
diff --git a/src/translations/en.json b/src/translations/en.json index 9173c28233..797078805e 100755 --- a/src/translations/en.json +++ b/src/translations/en.json @@ -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",