1
0
mirror of https://github.com/home-assistant/frontend.git synced 2025-12-20 02:38:53 +00:00

Add localization to the automation editor (#923)

* Add localization to the automation editor

* Unnest automation strings from `section`
This commit is contained in:
Adam Mills
2018-02-26 19:15:51 -05:00
committed by Paulus Schoutsen
parent 9f3458fcd1
commit d4b257854d
37 changed files with 337 additions and 159 deletions

View File

@@ -18,7 +18,7 @@ export default class NumericStateTrigger extends Component {
}
/* eslint-disable camelcase */
render({ trigger, hass }) {
render({ trigger, hass, localize }) {
const {
value_template, entity_id, below, above
} = trigger;
@@ -32,19 +32,19 @@ export default class NumericStateTrigger extends Component {
allowCustomEntity
/>
<paper-input
label="Above"
label={localize('ui.panel.config.automation.editor.triggers.type.numeric_state.above')}
name="above"
value={above}
onvalue-changed={this.onChange}
/>
<paper-input
label="Below"
label={localize('ui.panel.config.automation.editor.triggers.type.numeric_state.below')}
name="below"
value={below}
onvalue-changed={this.onChange}
/>
<paper-textarea
label="Value template (optional)"
label={localize('ui.panel.config.automation.editor.triggers.type.numeric_state.value_template')}
name="value_template"
value={value_template}
onvalue-changed={this.onChange}