mirror of
https://github.com/internetee/registry.git
synced 2025-07-24 11:38:30 +02:00
Fix I18n
This commit is contained in:
parent
b446cff3fd
commit
68d32568fc
6 changed files with 16 additions and 15 deletions
|
@ -78,11 +78,11 @@ module Concerns
|
|||
def process_result(result:, field:)
|
||||
case result[:errors].keys.first
|
||||
when :smtp
|
||||
errors.add(field, I18n.t('email.email_smtp_check_error'))
|
||||
errors.add(field, I18n.t('email_verifable.email_smtp_check_error'))
|
||||
when :mx
|
||||
errors.add(field, I18n.t('email.email_mx_check_error'))
|
||||
errors.add(field, I18n.t('email_verifable.email_mx_check_error'))
|
||||
when :regex
|
||||
errors.add(field, I18n.t('email.email_regex_check_error'))
|
||||
errors.add(field, I18n.t('email_verifable.email_regex_check_error'))
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue