Skip to content

Commit

Permalink
Fix localization for email error
Browse files Browse the repository at this point in the history
  • Loading branch information
mbernson committed May 24, 2024
1 parent 30834b7 commit e063a92
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/ValidationKit/Validators/Validator+Email.swift
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,7 @@ public extension Validator {
}
}
}

public extension ValidationError {
static let invalidEmail = ValidationError(localizedDescription: NSLocalizedString("invalid_email", comment: "Invalid e-mail address error"))
static let invalidEmail = ValidationError(localizedDescription: NSLocalizedString("invalid_email", bundle: .module, comment: "Invalid e-mail address error"))
}

0 comments on commit e063a92

Please sign in to comment.