mirror of
https://github.com/home-assistant/frontend.git
synced 2025-11-08 18:39:40 +00:00
Add title and description translation support to expandable form (#21745)
* Add title and description translation support to expandable form * Fix type * handle translations in sections * Rename prefix to path + refactor * Fix section name and description --------- Co-authored-by: Bram Kragten <mail@bramkragten.nl>
This commit is contained in:
@@ -225,11 +225,24 @@ class StepFlowForm extends LitElement {
|
||||
this._stepData = ev.detail.value;
|
||||
}
|
||||
|
||||
private _labelCallback = (field: HaFormSchema): string =>
|
||||
this.flowConfig.renderShowFormStepFieldLabel(this.hass, this.step, field);
|
||||
private _labelCallback = (field: HaFormSchema, _data, options): string =>
|
||||
this.flowConfig.renderShowFormStepFieldLabel(
|
||||
this.hass,
|
||||
this.step,
|
||||
field,
|
||||
options
|
||||
);
|
||||
|
||||
private _helperCallback = (field: HaFormSchema): string | TemplateResult =>
|
||||
this.flowConfig.renderShowFormStepFieldHelper(this.hass, this.step, field);
|
||||
private _helperCallback = (
|
||||
field: HaFormSchema,
|
||||
options
|
||||
): string | TemplateResult =>
|
||||
this.flowConfig.renderShowFormStepFieldHelper(
|
||||
this.hass,
|
||||
this.step,
|
||||
field,
|
||||
options
|
||||
);
|
||||
|
||||
private _errorCallback = (error: string) =>
|
||||
this.flowConfig.renderShowFormStepFieldError(this.hass, this.step, error);
|
||||
|
||||
Reference in New Issue
Block a user