feat: Add i18n on whatsapp list button (#10852)

Fixes #10862

---------

Co-authored-by: Pranav <pranav@chatwoot.com>
This commit is contained in:
João Gabriel Franco
2025-06-11 23:19:36 -03:00
committed by GitHub
parent 0d05a07aa7
commit d52f4267ba
5 changed files with 29 additions and 27 deletions

View File

@@ -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