From a60bb3ae0a3e509031aa8fdc37a7a93df67323a7 Mon Sep 17 00:00:00 2001 From: Bram Kragten Date: Thu, 2 Nov 2023 21:02:42 +0100 Subject: [PATCH] Clean up auth flow translation placeholders (#18502) --- src/auth/ha-auth-flow.ts | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) diff --git a/src/auth/ha-auth-flow.ts b/src/auth/ha-auth-flow.ts index 2455f1e08a..9be7202c77 100644 --- a/src/auth/ha-auth-flow.ts +++ b/src/auth/ha-auth-flow.ts @@ -302,13 +302,7 @@ export class HaAuthFlow extends LitElement { private _computeStepDescription(step: DataEntryFlowStepForm) { const resourceKey = `ui.panel.page-authorize.form.providers.${step.handler[0]}.step.${step.step_id}.description` as const; - const args: string[] = []; - const placeholders = step.description_placeholders || {}; - Object.keys(placeholders).forEach((key) => { - args.push(key); - args.push(placeholders[key]); - }); - return this.localize(resourceKey, ...args); + return this.localize(resourceKey, step.description_placeholders); } private _computeLabelCallback(step: DataEntryFlowStepForm) {