fix: Move auto resolution message text content to i18n file (#10881)
Move the text content to i18n file.
This commit is contained in:
@@ -132,7 +132,6 @@ en:
|
|||||||
rating: Rating
|
rating: Rating
|
||||||
feedback: Feedback Comment
|
feedback: Feedback Comment
|
||||||
recorded_at: Recorded date
|
recorded_at: Recorded date
|
||||||
|
|
||||||
notifications:
|
notifications:
|
||||||
notification_title:
|
notification_title:
|
||||||
conversation_creation: 'A conversation (#%{display_id}) has been created in %{inbox_name}'
|
conversation_creation: 'A conversation (#%{display_id}) has been created in %{inbox_name}'
|
||||||
@@ -180,6 +179,7 @@ en:
|
|||||||
removed: '%{user_name} removed SLA policy %{sla_name}'
|
removed: '%{user_name} removed SLA policy %{sla_name}'
|
||||||
muted: '%{user_name} has muted the conversation'
|
muted: '%{user_name} has muted the conversation'
|
||||||
unmuted: '%{user_name} has unmuted the conversation'
|
unmuted: '%{user_name} has unmuted the conversation'
|
||||||
|
auto_resolution_message: 'Resolving the conversation as it has been inactive for a while. Please start a new conversation if you need further assistance.'
|
||||||
templates:
|
templates:
|
||||||
greeting_message_body: '%{account_name} typically replies in a few hours.'
|
greeting_message_body: '%{account_name} typically replies in a few hours.'
|
||||||
ways_to_reach_you_message_body: 'Give the team a way to reach you.'
|
ways_to_reach_you_message_body: 'Give the team a way to reach you.'
|
||||||
|
|||||||
@@ -10,7 +10,7 @@ class Captain::InboxPendingConversationsResolutionJob < ApplicationJob
|
|||||||
message_type: :outgoing,
|
message_type: :outgoing,
|
||||||
account_id: conversation.account_id,
|
account_id: conversation.account_id,
|
||||||
inbox_id: conversation.inbox_id,
|
inbox_id: conversation.inbox_id,
|
||||||
content: 'Resolving the conversation as it has been inactive for a while. Please start a new conversation if you need further assistance.'
|
content: I18n.t('conversations.activity.auto_resolution_message')
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
conversation.resolved!
|
conversation.resolved!
|
||||||
|
|||||||
Reference in New Issue
Block a user