mirror of
https://github.com/home-assistant/frontend.git
synced 2025-07-27 11:16:35 +00:00
Added some missing translate tags for cards (#2188)
* Added some missing translate tags for cards more-info of: - sun - script - updater * Added some missing translate tags for cards * Added some missing translate tags for cards
This commit is contained in:
parent
2059e36dd6
commit
7cd6619a79
@ -1,15 +1,18 @@
|
|||||||
import "@polymer/iron-flex-layout/iron-flex-layout-classes";
|
import "@polymer/iron-flex-layout/iron-flex-layout-classes";
|
||||||
import { html } from "@polymer/polymer/lib/utils/html-tag";
|
import { html } from "@polymer/polymer/lib/utils/html-tag";
|
||||||
import { PolymerElement } from "@polymer/polymer/polymer-element";
|
import { PolymerElement } from "@polymer/polymer/polymer-element";
|
||||||
|
import LocalizeMixin from "../../../mixins/localize-mixin";
|
||||||
|
|
||||||
class MoreInfoScript extends PolymerElement {
|
class MoreInfoScript extends LocalizeMixin(PolymerElement) {
|
||||||
static get template() {
|
static get template() {
|
||||||
return html`
|
return html`
|
||||||
<style include="iron-flex iron-flex-alignment"></style>
|
<style include="iron-flex iron-flex-alignment"></style>
|
||||||
|
|
||||||
<div class="layout vertical">
|
<div class="layout vertical">
|
||||||
<div class="data-entry layout justified horizontal">
|
<div class="data-entry layout justified horizontal">
|
||||||
<div class="key">Last Action</div>
|
<div class="key">
|
||||||
|
[[localize('ui.dialogs.more_info_control.script.last_action')]]
|
||||||
|
</div>
|
||||||
<div class="value">[[stateObj.attributes.last_action]]</div>
|
<div class="value">[[stateObj.attributes.last_action]]</div>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -28,7 +28,9 @@ class MoreInfoSun extends LocalizeMixin(PolymerElement) {
|
|||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
<div class="data-entry layout justified horizontal">
|
<div class="data-entry layout justified horizontal">
|
||||||
<div class="key">Elevation</div>
|
<div class="key">
|
||||||
|
[[localize('ui.dialogs.more_info_control.sun.elevation')]]
|
||||||
|
</div>
|
||||||
<div class="value">[[stateObj.attributes.elevation]]</div>
|
<div class="value">[[stateObj.attributes.elevation]]</div>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
@ -63,7 +65,10 @@ class MoreInfoSun extends LocalizeMixin(PolymerElement) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
itemCaption(type) {
|
itemCaption(type) {
|
||||||
return type === "ris" ? "Rising " : "Setting ";
|
if (type === "ris") {
|
||||||
|
return this.localize("ui.dialogs.more_info_control.sun.rising");
|
||||||
|
}
|
||||||
|
return this.localize("ui.dialogs.more_info_control.sun.setting");
|
||||||
}
|
}
|
||||||
|
|
||||||
itemDate(type) {
|
itemDate(type) {
|
||||||
|
@ -1,7 +1,8 @@
|
|||||||
import { html } from "@polymer/polymer/lib/utils/html-tag";
|
import { html } from "@polymer/polymer/lib/utils/html-tag";
|
||||||
import { PolymerElement } from "@polymer/polymer/polymer-element";
|
import { PolymerElement } from "@polymer/polymer/polymer-element";
|
||||||
|
import LocalizeMixin from "../../../mixins/localize-mixin";
|
||||||
|
|
||||||
class MoreInfoUpdater extends PolymerElement {
|
class MoreInfoUpdater extends LocalizeMixin(PolymerElement) {
|
||||||
static get template() {
|
static get template() {
|
||||||
return html`
|
return html`
|
||||||
<style>
|
<style>
|
||||||
@ -15,7 +16,7 @@ class MoreInfoUpdater extends PolymerElement {
|
|||||||
class="link"
|
class="link"
|
||||||
href="https://www.home-assistant.io/docs/installation/updating/"
|
href="https://www.home-assistant.io/docs/installation/updating/"
|
||||||
target="_blank"
|
target="_blank"
|
||||||
>Update Instructions</a
|
>[[localize('ui.dialogs.more_info_control.updater.title')]]</a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
`;
|
`;
|
||||||
|
@ -472,6 +472,19 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"dialogs": {
|
"dialogs": {
|
||||||
|
"more_info_control": {
|
||||||
|
"script": {
|
||||||
|
"last_action": "Last Action"
|
||||||
|
},
|
||||||
|
"sun": {
|
||||||
|
"elevation": "Elevation",
|
||||||
|
"rising": "Rising",
|
||||||
|
"setting": "Setting"
|
||||||
|
},
|
||||||
|
"updater": {
|
||||||
|
"title": "Update Instructions"
|
||||||
|
}
|
||||||
|
},
|
||||||
"more_info_settings": {
|
"more_info_settings": {
|
||||||
"save": "Save",
|
"save": "Save",
|
||||||
"name": "Name",
|
"name": "Name",
|
||||||
|
Loading…
x
Reference in New Issue
Block a user