Starts in:
1 DAY
22 HRS
40 MIN
1 SEC
Starts in:
1 D
22 H
40 M
1 S

Activities of "jeboersema"

Hi,

Your solution has worked as expected.

I have however implimented a custom provider in a seperate file in order to not have a long list of validation messages in the app.module.ts file.

So in my app.module.ts I do the following:

import { VALIDATION_MESSAGE_PROVIDER } from "./shared/validationMessage.provider";

...

  providers: [APP_ROUTE_PROVIDER, VALIDATION_MESSAGE_PROVIDER],
  bootstrap: [AppComponent],
})
export class AppModule {}

Then I have implimented the VALIDATION_BLUEPRINTS in the following seperate file:

import { VALIDATION_BLUEPRINTS } from '@ngx-validate/core';
import { LocalizationService } from '@abp/ng.core';
import { Injectable } from '@angular/core';

@Injectable()
export class ValidationMessageService {
  constructor(public localizationService: LocalizationService) {}

  exists = this.localizationService.instant("WealthMaster::Validation.Country.Exists");
}

export const VALIDATION_MESSAGE_PROVIDER = [
  {
    provide: VALIDATION_BLUEPRINTS,
    useClass: ValidationMessageService
  },
];

And the result looks as follows:

Thankyou for your assitance

Showing 1 to 1 of 1 entries
Made with ❤️ on ABP v9.1.0-preview. Updated on November 20, 2024, 13:06