Marked Arabic as RTL + added a bunch of lovelace menu entries to label files (#2650)

* Marked Arabic as RTL + added a bunch of lovelace menu entries to label files

* Refactor keys - added menus
This commit is contained in:
yosilevy 2019-02-02 07:33:26 +02:00 committed by Paulus Schoutsen
parent db53d37493
commit a5bdf096dc
4 changed files with 27 additions and 9 deletions

View File

@ -453,8 +453,7 @@ export class HuiEditCard extends LitElement {
flex: auto; flex: auto;
} }
.content hui-card-preview { .content hui-card-preview {
margin-top: 0; margin: 0 24px;
margin-left: 24px;
flex: 490px; flex: 490px;
max-width: 490px; max-width: 490px;
} }

View File

@ -168,7 +168,9 @@ class HUIRoot extends LitElement {
slot="dropdown-content" slot="dropdown-content"
> >
<paper-item @click="${this.lovelace!.enableFullEditMode}" <paper-item @click="${this.lovelace!.enableFullEditMode}"
>Raw config editor</paper-item >${this.hass!.localize(
"ui.panel.lovelace.editor.menu.raw_editor"
)}</paper-item
> >
</paper-listbox> </paper-listbox>
</paper-menu-button> </paper-menu-button>
@ -206,19 +208,27 @@ class HUIRoot extends LitElement {
${this._yamlMode ${this._yamlMode
? html` ? html`
<paper-item @click="${this._handleRefresh}" <paper-item @click="${this._handleRefresh}"
>Refresh</paper-item >${this.hass!.localize(
"ui.panel.lovelace.menu.refresh"
)}</paper-item
> >
` `
: ""} : ""}
<paper-item @click="${this._handleUnusedEntities}" <paper-item @click="${this._handleUnusedEntities}"
>Unused entities</paper-item >${this.hass!.localize(
"ui.panel.lovelace.menu.unused_entities"
)}</paper-item
> >
<paper-item @click="${this._editModeEnable}" <paper-item @click="${this._editModeEnable}"
>${this.hass!.localize( >${this.hass!.localize(
"ui.panel.lovelace.editor.configure_ui" "ui.panel.lovelace.menu.configure_ui"
)}</paper-item
>
<paper-item @click="${this._handleHelp}"
>${this.hass!.localize(
"ui.panel.lovelace.menu.help"
)}</paper-item )}</paper-item
> >
<paper-item @click="${this._handleHelp}">Help</paper-item>
</paper-listbox> </paper-listbox>
</paper-menu-button> </paper-menu-button>
</app-toolbar> </app-toolbar>

View File

@ -823,9 +823,17 @@
"add_item": "Add item" "add_item": "Add item"
} }
}, },
"menu": {
"configure_ui": "Configure UI",
"unused_entities": "Unused entities",
"help": "Help",
"refresh": "Refresh"
},
"editor": { "editor": {
"header": "Edit UI", "header": "Edit UI",
"configure_ui": "Configure UI", "menu": {
"raw_editor": "Raw config editor"
},
"edit_view": { "edit_view": {
"header": "View Configuration", "header": "View Configuration",
"add": "Add view", "add": "Add view",

View File

@ -1,6 +1,7 @@
{ {
"ar": { "ar": {
"nativeName": "العربية" "nativeName": "العربية",
"isRTL": true
}, },
"bg": { "bg": {
"nativeName": "Български" "nativeName": "Български"