Allow translation for data entry submit button (#88499)

This commit is contained in:
Bram Kragten 2023-02-20 19:52:39 +01:00 committed by GitHub
parent ecf87ae979
commit bee79e351e
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 3 additions and 1 deletions

View file

@ -51,7 +51,8 @@
"constant": "Constant", "constant": "Constant",
"bool": "Optional boolean", "bool": "Optional boolean",
"int": "Numeric input" "int": "Numeric input"
} },
"submit": "Save!"
}, },
"options_2": { "options_2": {
"data": { "data": {

View file

@ -135,6 +135,7 @@ def gen_data_entry_schema(
vol.Optional("data"): {str: cv.string_with_no_html}, vol.Optional("data"): {str: cv.string_with_no_html},
vol.Optional("data_description"): {str: cv.string_with_no_html}, vol.Optional("data_description"): {str: cv.string_with_no_html},
vol.Optional("menu_options"): {str: cv.string_with_no_html}, vol.Optional("menu_options"): {str: cv.string_with_no_html},
vol.Optional("submit"): cv.string_with_no_html,
} }
}, },
vol.Optional("error"): {str: cv.string_with_no_html}, vol.Optional("error"): {str: cv.string_with_no_html},