Skip to content

Commit

Permalink
Clean up auth flow translation placeholders (#18502)
Browse files Browse the repository at this point in the history
  • Loading branch information
bramkragten authored Nov 2, 2023
1 parent 784f753 commit a60bb3a
Showing 1 changed file with 1 addition and 7 deletions.
8 changes: 1 addition & 7 deletions src/auth/ha-auth-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit a60bb3a

Please sign in to comment.