feat: Add i18n on whatsapp list button (#10852)
Fixes #10862 --------- Co-authored-by: Pranav <pranav@chatwoot.com>
This commit is contained in:
committed by
GitHub
parent
0d05a07aa7
commit
d52f4267ba
@@ -100,7 +100,7 @@ class Whatsapp::Providers::BaseService
|
||||
rows = create_rows(message.content_attributes['items'])
|
||||
section1 = { 'rows' => rows }
|
||||
sections = [section1]
|
||||
json_hash = { :button => 'Choose an item', 'sections' => sections }
|
||||
json_hash = { :button => I18n.t('conversations.messages.whatsapp.list_button_label'), 'sections' => sections }
|
||||
create_payload('list', message.outgoing_content, JSON.generate(json_hash))
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user