diff --git a/src/components/ha-form/ha-form.ts b/src/components/ha-form/ha-form.ts index 0894ac38c4..a440675990 100644 --- a/src/components/ha-form/ha-form.ts +++ b/src/components/ha-form/ha-form.ts @@ -73,6 +73,10 @@ export class HaForm extends LitElement implements HaFormElement { schema: any ) => string | undefined; + @property({ attribute: false }) public localizeValue?: ( + key: string + ) => string; + protected getFormProperties(): Record { return {}; } @@ -145,6 +149,7 @@ export class HaForm extends LitElement implements HaFormElement { .disabled=${item.disabled || this.disabled || false} .placeholder=${item.required ? "" : item.default} .helper=${this._computeHelper(item)} + .localizeValue=${this.localizeValue} .required=${item.required || false} .context=${this._generateContext(item)} >`