Skip to content

Commit 7407e29

Browse files
authored
Update core-validator.js
1 parent 034bd2f commit 7407e29

File tree

1 file changed

+0
-10
lines changed

1 file changed

+0
-10
lines changed

addon/decorators/core-validator.js

-10
Original file line numberDiff line numberDiff line change
@@ -35,16 +35,6 @@ function coreValidator(constructor) {
3535
addErrors = true;
3636
_validationMessages = {};
3737

38-
constructor(...args) {
39-
super(...args);
40-
let validatorLocale;
41-
if (getOwner(this)) {
42-
validatorLocale = getOwner(this)?.lookup('validator:locale');
43-
}
44-
45-
this['_locale'] = this['_locale'] ?? (validatorLocale ? validatorLocale.locale : 'en');
46-
set(this, '_validationMessages', Messages[this['_locale']]);
47-
}
4838

4939
// to be implemented
5040
// clearErrors() {

0 commit comments

Comments
 (0)