From ee4004e9ff47d6381f8e5cae789e853835f5b14a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Sinan=20=C3=96zt=C3=BCrk?= Date: Fri, 22 Dec 2023 16:56:21 +0300 Subject: [PATCH] add customMessage property to ngx-validate default blueprints --- .../packages/theme-shared/src/lib/constants/validation.ts | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/npm/ng-packs/packages/theme-shared/src/lib/constants/validation.ts b/npm/ng-packs/packages/theme-shared/src/lib/constants/validation.ts index 7822c10e36..9b3a97b49f 100644 --- a/npm/ng-packs/packages/theme-shared/src/lib/constants/validation.ts +++ b/npm/ng-packs/packages/theme-shared/src/lib/constants/validation.ts @@ -4,7 +4,7 @@ export const DEFAULT_VALIDATION_BLUEPRINTS = { invalid: 'AbpValidation::ThisFieldIsNotValid.', max: 'AbpValidation::ThisFieldMustBeLessOrEqual{0}[{{ max }}]', maxlength: - 'AbpValidation::ThisFieldMustBeAStringOrArrayTypeWithAMaximumLengthOf{0}[{{ requiredLength }}]', + 'AbpValidation::ThisFieldMustBeAStringOrArrayTypeWi thAMaximumLengthOf{0}[{{ requiredLength }}]', min: 'AbpValidation::ThisFieldMustBeGreaterThanOrEqual{0}[{{ min }}]', minlength: 'AbpValidation::ThisFieldMustBeAStringOrArrayTypeWithAMinimumLengthOf{0}[{{ requiredLength }}]', @@ -18,4 +18,5 @@ export const DEFAULT_VALIDATION_BLUEPRINTS = { passwordRequiresDigit: 'AbpIdentity::Volo.Abp.Identity:PasswordRequiresDigit', passwordRequiresNonAlphanumeric: 'AbpIdentity::Volo.Abp.Identity:PasswordRequiresNonAlphanumeric', usernamePattern: 'AbpIdentity::Volo.Abp.Identity:InvalidUserName[{{ actualValue }}]', -}; + customMessage: '{{ customMessage }}' +}; \ No newline at end of file