We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 034bd2f commit 7407e29Copy full SHA for 7407e29
addon/decorators/core-validator.js
@@ -35,16 +35,6 @@ function coreValidator(constructor) {
35
addErrors = true;
36
_validationMessages = {};
37
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
48
49
// to be implemented
50
// clearErrors() {
0 commit comments