mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 03:43:15 +08:00
UX: form template simpler "value missing" i18n (#24154)
This commit is contained in:
parent
5e633708ac
commit
bdf2a20355
|
@ -102,13 +102,7 @@ function _validateFormTemplateData(form) {
|
|||
function _showErrorMessage(field, element) {
|
||||
if (field.validity.valueMissing) {
|
||||
const prefix = "form_templates.errors.valueMissing";
|
||||
const types = [
|
||||
"select-one",
|
||||
"select-multiple",
|
||||
"checkbox",
|
||||
"text",
|
||||
"number",
|
||||
];
|
||||
const types = ["select-one", "select-multiple", "checkbox"];
|
||||
_showErrorByType(element, field, prefix, types);
|
||||
} else if (field.validity.typeMismatch) {
|
||||
const prefix = "form_templates.errors.typeMismatch";
|
||||
|
|
|
@ -4610,7 +4610,6 @@ en:
|
|||
errors:
|
||||
valueMissing:
|
||||
default: "Please fill out this field."
|
||||
text: "Please fill out this field."
|
||||
select-one: "Please select an item in the list."
|
||||
select-multiple: "Please select at least one item in the list."
|
||||
checkbox: "Please check this box if you want to proceed."
|
||||
|
|
Loading…
Reference in New Issue
Block a user