diff --git a/src/dialogs/config-flow/show-dialog-config-flow.ts b/src/dialogs/config-flow/show-dialog-config-flow.ts index 1eb007976c..d74df38c1d 100644 --- a/src/dialogs/config-flow/show-dialog-config-flow.ts +++ b/src/dialogs/config-flow/show-dialog-config-flow.ts @@ -101,6 +101,19 @@ export const showConfigFlowDialog = ( return hass.localize(`component.${step.handler}.selector.${key}`); }, + renderShowFormStepSubmitButton(hass, step) { + return ( + hass.localize( + `component.${step.handler}.config.step.${step.step_id}.submit` + ) || + hass.localize( + `ui.panel.config.integrations.config_flow.${ + step.last_step === false ? "next" : "submit" + }` + ) + ); + }, + renderExternalStepHeader(hass, step) { return ( hass.localize( diff --git a/src/dialogs/config-flow/show-dialog-data-entry-flow.ts b/src/dialogs/config-flow/show-dialog-data-entry-flow.ts index d685cf228b..265a5cd5f6 100644 --- a/src/dialogs/config-flow/show-dialog-data-entry-flow.ts +++ b/src/dialogs/config-flow/show-dialog-data-entry-flow.ts @@ -67,6 +67,11 @@ export interface FlowConfig { key: string ): string; + renderShowFormStepSubmitButton( + hass: HomeAssistant, + step: DataEntryFlowStepForm + ): string; + renderExternalStepHeader( hass: HomeAssistant, step: DataEntryFlowStepExternal diff --git a/src/dialogs/config-flow/show-dialog-options-flow.ts b/src/dialogs/config-flow/show-dialog-options-flow.ts index 42aa2a25ab..8744aa4d0a 100644 --- a/src/dialogs/config-flow/show-dialog-options-flow.ts +++ b/src/dialogs/config-flow/show-dialog-options-flow.ts @@ -115,6 +115,19 @@ export const showOptionsFlowDialog = ( return hass.localize(`component.${configEntry.domain}.selector.${key}`); }, + renderShowFormStepSubmitButton(hass, step) { + return ( + hass.localize( + `component.${configEntry.domain}.options.step.${step.step_id}.submit` + ) || + hass.localize( + `ui.panel.config.integrations.config_flow.${ + step.last_step === false ? "next" : "submit" + }` + ) + ); + }, + renderExternalStepHeader(_hass, _step) { return ""; }, diff --git a/src/dialogs/config-flow/step-flow-form.ts b/src/dialogs/config-flow/step-flow-form.ts index 21511ef6e6..d6f042bf9d 100644 --- a/src/dialogs/config-flow/step-flow-form.ts +++ b/src/dialogs/config-flow/step-flow-form.ts @@ -70,10 +70,9 @@ class StepFlowForm extends LitElement { : html`
- ${this.hass.localize( - `ui.panel.config.integrations.config_flow.${ - this.step.last_step === false ? "next" : "submit" - }` + ${this.flowConfig.renderShowFormStepSubmitButton( + this.hass, + this.step )}
diff --git a/src/panels/config/repairs/show-dialog-repair-flow.ts b/src/panels/config/repairs/show-dialog-repair-flow.ts index 575530eaf3..e1af620988 100644 --- a/src/panels/config/repairs/show-dialog-repair-flow.ts +++ b/src/panels/config/repairs/show-dialog-repair-flow.ts @@ -128,6 +128,21 @@ export const showRepairsFlowDialog = ( return hass.localize(`component.${issue.domain}.selector.${key}`); }, + renderShowFormStepSubmitButton(hass, step) { + return ( + hass.localize( + `component.${issue.domain}.issues.${ + issue.translation_key || issue.issue_id + }.fix_flow.step.${step.step_id}.submit` + ) || + hass.localize( + `ui.panel.config.integrations.config_flow.${ + step.last_step === false ? "next" : "submit" + }` + ) + ); + }, + renderExternalStepHeader(_hass, _step) { return ""; },