Skip to content

Commit

Permalink
Add can dummy rule
Browse files Browse the repository at this point in the history
  • Loading branch information
apih committed Dec 3, 2023
1 parent f971518 commit bbf53d9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/Validator.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,7 @@ export default class Validator {
static #dummyRules = [
'active_url',
'bail',
'can',
'current_password',
'enum',
'exclude',
Expand Down
1 change: 1 addition & 0 deletions src/locales/en.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default {
string: 'The :attribute field must be between :min and :max characters.',
},
boolean: 'The :attribute field must be true or false.',
can: 'The :attribute field contains an unauthorized value.',
confirmed: 'The :attribute field confirmation does not match.',
current_password: 'The password is incorrect.',
date: 'The :attribute field must be a valid date.',
Expand Down
1 change: 1 addition & 0 deletions src/locales/ms.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ export default {
string: 'Medan :attribute mesti antara :min dan :max huruf.',
},
boolean: 'Medan :attribute mesti benar atau salah.',
can: 'Medan :attribute field mengandungi nilai yang tidak dibenarkan.',
confirmed: 'Pengesahan medan :attribute tidak sepadan.',
current_password: 'Kata laluan tidak sah.',
date: 'Medan :attribute mesti tarikh yang sah.',
Expand Down

0 comments on commit bbf53d9

Please sign in to comment.