Minor form localizations (#19434)

* Minor form localizations

* missing imports
This commit is contained in:
karwosts
2024-01-17 11:40:58 -08:00
committed by GitHub
parent 7d4284d409
commit 83c5408f8f
5 changed files with 17 additions and 4 deletions

View File

@@ -70,7 +70,9 @@ export class HaFormString extends LitElement implements HaFormElement {
? // reserve some space for the icon.
html`<div style="width: 24px"></div>`
: this.schema.description?.suffix}
.validationMessage=${this.schema.required ? "Required" : undefined}
.validationMessage=${this.schema.required
? this.localize?.("ui.common.error_required")
: undefined}
@input=${this._valueChanged}
@change=${this._valueChanged}
></ha-textfield>