I would like to use english as main language for errors but I can not override validation messages. It is still in your language.
const DEFAULT_GLOBAL_VALIDATION_MESSAGES = {
required: 'This option cannot be empty',
maxlength: 'The length of this option input cannot be greater than {requiredLength}',
minlength: 'The length of this option input cannot be less than {requiredLength}',
ngxUniqueCheck: 'The input value already exists, please re-enter',
email: 'The format of the input message is incorrect',
repeat: 'Inconsistent input twice',
pattern: 'The option input format is incorrect',
number: 'Must enter a number',
url: 'The input URL format is incorrect',
max: 'The input value of this option cannot be greater than {max}',
min: 'The input value of this option cannot be less than {min}'
};
@NgModule({
imports: [
CommonModule,
FormsModule,
ReactiveFormsModule,
SharedComponentsModule,
SessionsRoutingModule,
NgxValidatorModule.forRoot({
validateOn: 'submit',
globalValidationMessages: DEFAULT_GLOBAL_VALIDATION_MESSAGES
}),
],
declarations: [SigninComponent]
})
export class SessionsModule { }