mirror of
https://github.com/lingble/chatwoot.git
synced 2025-10-29 18:22:53 +00:00
fix: Use translations for name when sending emails (#12411)
Fix missing translation.
This commit is contained in:
@@ -101,7 +101,7 @@ class ConversationReplyMailer < ApplicationMailer
|
||||
end
|
||||
|
||||
def custom_sender_name
|
||||
current_message&.sender&.available_name || @agent&.available_name || 'Notifications'
|
||||
current_message&.sender&.available_name || @agent&.available_name || I18n.t('conversations.reply.email.header.notifications')
|
||||
end
|
||||
|
||||
def business_name
|
||||
|
||||
@@ -228,6 +228,7 @@ en:
|
||||
reply:
|
||||
email:
|
||||
header:
|
||||
notifications: 'Notifications'
|
||||
from_with_name: '%{assignee_name} from %{inbox_name} <%{from_email}>'
|
||||
reply_with_name: '%{assignee_name} from %{inbox_name} <reply+%{reply_email}>'
|
||||
friendly_name: '%{sender_name} from %{business_name} <%{from_email}>'
|
||||
|
||||
Reference in New Issue
Block a user