Reduce label length for regex pattern input text helper (#15016)

* Reduce label length for regex pattern input text helper

* Rename key
This commit is contained in:
Paul Bottein 2023-01-11 09:54:11 +01:00 committed by GitHub
parent 7136142437
commit c63b64cff5
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 6 additions and 2 deletions

View File

@ -145,7 +145,10 @@ class HaInputTextForm extends LitElement {
.configValue=${"pattern"} .configValue=${"pattern"}
@input=${this._valueChanged} @input=${this._valueChanged}
.label=${this.hass!.localize( .label=${this.hass!.localize(
"ui.dialogs.helper_settings.input_text.pattern" "ui.dialogs.helper_settings.input_text.pattern_label"
)}
.helper=${this.hass!.localize(
"ui.dialogs.helper_settings.input_text.pattern_helper"
)} )}
></ha-textfield> ></ha-textfield>
` `

View File

@ -1033,7 +1033,8 @@
"mode": "Display mode", "mode": "Display mode",
"text": "Text", "text": "Text",
"password": "Password", "password": "Password",
"pattern": "Regex pattern for client-side validation" "pattern_label": "Regex pattern",
"pattern_helper": "Used for client-side validation"
}, },
"input_number": { "input_number": {
"min": "Minimum value", "min": "Minimum value",