OpusCapita / react-crudeditor

OpusCapita React CRUD Editor

Home Page:https://opuscapita.github.io/react-crudeditor/branches/master/?currentComponentName=ContractEditor&maxContainerWidth=100%25&showSidebar=false

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Refactor exceptions translations

estambakio-sc opened this issue · comments

Accroding to discussion with @amourzenkov-sc and @ddivin-sc

DELETE as not (to be) used anywhere

"typeMismatch.java.lang.Double": "Value must be a valid number",
"typeMismatch.java.lang.Integer": "Value must be a valid number",
"typeMismatch.java.lang.Long": "Value must be a valid number",
"typeMismatch.java.lang.Short": "Value must be a valid number",
"typeMismatch.java.net.URI": "Value must be a valid URI",
"default.not.inlist.message": "Value is not in the list ''{3}''",
"default.not.equal.message": "Value cannot equal ''{3}''",
"default.invalid.creditCard.message": "Not a valid credit card number format",
"default.invalid.range.message": "Value is not in the valid range of ''{3}'' to ''{4}''",
"default.invalid.size.message": "Value is not in the valid size range of ''{3}'' to ''{4}''",

TODO: replace generic number-related min/max messages with the following ones for
strings 'length' min/max constraints

"default.invalid.max.size.message": "Value exceeds the maximum size of ''{max}''",
"default.invalid.min.size.message": "Value is less than the minimum size of ''{min}''",

RENAME

"typeMismatch.java.net.URL": "Value must be a valid URL",
-> "default.invalid.URL.message": "Value must be a valid URL"

"typeMismatch.java.math.BigDecimal": "Value must be a valid number",
-> "default.invalid.decimal.message": "Value must be a valid number"

"typeMismatch.java.math.BigInteger": "Value must be a valid number",
-> "default.invalid.integer.message": "Value must be a valid number"