iachat/config/locales
Cayo P. R. Oliveira acd1e56a28 feat: baileys provider for whatsapp (#7)
* feat: baileys provider and placeholder for link device modal

* chore: drop qrcode.vue in favor of just img tag

* chore: update modal props

* feat: setup channel provider connection

* chore: update .env.example with Baileys API default configuration

* feat: add support for Baileys provider in WhatsApp events processing

* chore: rename Baileys API default host variable to DEFAULT_BAILEYS_URL

* feat: add setup and disconnect methods for Baileys channel provider in inboxes controller that will be implemented

* feat: add CHANNEL_CONNECTION_UPDATE event and include it in broadcast data preparation

* refactor: simplify channel retrieval logic in WhatsappEventsJob

* refactor: revert CHANNEL_UPDATE_EVENTS constant from ActionCableBroadcastJob

* feat: add 'baileys' as a provider option in Whatsapp channel model

* feat: add provider_connection field to Whatsapp channel model and migration

* refactor: remove unnecessary  CHANNEL_CONNECTION_UPDATE event type

* feat: implement channel provider connection with baileys API

* feat: add inbox association to Whatsapp channel model and update webhook URL handling

* feat: enhance Baileys service to handle webhook multiple event types

* refactor: simplify webhook verification logic in Baileys service

* feat: add setup channel provider call, and refactor some logic

* chore: adapt logic to new API

* refactor: fix typo

* refactor: fix import

* refactor: fix typo

* chore: add fixme comment about race condition

* fix: remove double disconnect call

* feat: implement message processing for incoming WhatsApp messages

* refactor: streamline message type determination and improve readability

* chore: increase cache key granularity

provider connection info might be updated multiple times within 1 second, so updates might be lost due to cache key not being updated. changing cache key to milliseconds solves this

* feat: add `is-loading` to buttons

* feat: update send_message method to use 'to' parameter and improve error handling

* refactor: simplify test setup and update API key in specs

* chore: add setup and disconnect channel provider specs

* test: fix spec after increase cache key granularity

* feat: handle reconnecting state on modal

* style: centered error text

* feat: advanced options on create inbox

* feat: handle new reconnecting on backend

* refactor: update inbox controller specs and leave a FIXME note

* test: add specs for Whatsapp::IncomingMessageBaileysService

* feat: add baileys configuration page

* feat: link device button when disconnected on conversation

* chore: refactor .env.example

* feat: add TODO for unimplemented methods in IncomingMessageBaileysService

* fix: correct method name and update environment variable references in WhatsappBaileysService

* refactor: simplify channel lookup by removing redundant method and handling phone number check directly

* chore: add TODO for unimplemented event processing methods in IncomingMessageBaileysService

* fix: update environment variable references in WhatsappBaileysService tests

* chore(webhook): add pt-BR translations

* chore: add pt-br translations

* chore: inboxname component margin

* refactor: inboxname computed prop

* feat: enhance WhatsApp provider connection handling and message processing

* test: inbox controller

* chore: improve baileys connection and messages handling

* test: incoming message service baileys

* refactor: update provider config validation and improve test setup for WhatsApp Baileys service

* fix: ensure only text messages are sent and update message source ID

* fix: create message

* fix: only update message on success

* test: fix broken specs

* chore: raise error on unsupported message content type

* feat: hide provider connection data from non-admins

* fix: update advanced options

* chore: move class definition

* fix: issue with send_message not returning id

---------

Co-authored-by: gabrieljablonski <contact@gabrieljablonski.com>
2025-04-03 23:28:38 -03:00
..
am.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ar.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
az.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
bg.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ca.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
cs.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
da.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
de.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
devise.am.yml chore: Update translations (#7728) 2023-08-15 13:47:38 -07:00
devise.ar.yml chore: Update translations (#9946) 2024-08-16 14:06:32 +05:30
devise.az.yml chore: Update translations (#10549) 2025-01-14 22:00:56 +05:30
devise.bg.yml chore: New Crowdin updates (#3616) 2021-12-19 11:38:02 +05:30
devise.ca.yml Chore: New Crowdin translations (#747) 2020-04-23 23:52:16 +05:30
devise.cs.yml Chore: Add ro, fr, pt_BR translation files (#827) 2020-05-06 14:24:20 +05:30
devise.da.yml chore: Enable Danish language (#1443) 2020-11-24 23:07:51 +05:30
devise.de.yml chore: Update translations (#4099) 2022-03-17 20:02:32 +05:30
devise.el.yml Chore: New Crowdin translations (#747) 2020-04-23 23:52:16 +05:30
devise.en.yml Feature/update confirmation email information (#145) 2019-10-14 14:24:58 +05:30
devise.es.yml chore: New Crowdin Translation updates (#2063) 2021-04-19 15:10:16 +05:30
devise.fa.yml chore: Update translations, Add Norwegian(no) (#1675) 2021-01-28 14:03:52 +05:30
devise.fi.yml chore: Update translations (#1502) 2020-12-09 16:43:51 +05:30
devise.fr.yml Chore: New Crowdin translations (#747) 2020-04-23 23:52:16 +05:30
devise.he.yml chore: Update translations (#6895) 2023-04-17 14:45:49 +05:30
devise.hi.yml Chore: Include Tamil, Arabic, other language updates (#1018) 2020-07-08 00:59:30 +05:30
devise.hr.yml chore: Update translations (#9946) 2024-08-16 14:06:32 +05:30
devise.hu.yml chore: New translation updates 2021-03-16 00:00:53 +05:30
devise.hy.yml chore: Update translations 2023-03-08 14:00:00 +05:30
devise.id.yml chore: Enable Finnish, Indonesian languages (#1495) 2020-12-08 00:05:07 +05:30
devise.is.yml chore: Update translations from Crowdin (#5810) 2022-11-08 09:36:24 -08:00
devise.it.yml chore: Update to the latest translations (#3923) 2022-02-07 17:19:34 +05:30
devise.ja.yml chore: Update translations from Crowdin (#10686) 2025-02-12 12:34:34 +05:30
devise.ka.yml chore: Enable Thai language (th), update translations (#5095) 2022-07-26 09:52:59 +05:30
devise.ko.yml chore: Update translations from Crowdin (#5810) 2022-11-08 09:36:24 -08:00
devise.lt.yml chore: Update translations (#7347) 2023-06-19 17:27:43 +05:30
devise.lv.yml chore: Update translations from Crowdin (#5523) 2022-09-28 21:59:41 -07:00
devise.ml.yml chore: Update to the latest translations (#3923) 2022-02-07 17:19:34 +05:30
devise.ms.yml chore: New Translation updates (#5287) 2022-08-19 13:55:23 +05:30
devise.ne.yml chore: Update translations, Add Norwegian(no) (#1675) 2021-01-28 14:03:52 +05:30
devise.nl.yml Add new translations (#862) 2020-05-16 18:07:19 +05:30
devise.no.yml chore: Update translations, Add Norwegian(no) (#1675) 2021-01-28 14:03:52 +05:30
devise.pl.yml Chore: Add ro, fr, pt_BR translation files (#827) 2020-05-06 14:24:20 +05:30
devise.pt_BR.yml chore: Update translations (#1502) 2020-12-09 16:43:51 +05:30
devise.pt.yml Chore: Add pt and pt_BR translations (#813) 2020-05-04 17:33:55 +05:30
devise.ro.yml chore: Update translations from Crowdin (#4652) 2022-05-09 18:57:05 +05:30
devise.ru.yml chore: Enable Russian, update translations (#1159) 2020-08-22 17:54:16 +05:30
devise.sh.yml chore: Update translations (#6751) 2023-03-27 14:45:50 +05:30
devise.sk.yml chore: New Crowdin updates (#3616) 2021-12-19 11:38:02 +05:30
devise.sl.yml chore: Update translations (#10549) 2025-01-14 22:00:56 +05:30
devise.sq.yml chore: Update translations (#8016) 2023-09-29 15:46:29 +05:30
devise.sr.yml chore: Update translations from Crowdin (#5202) 2022-08-08 21:14:50 +05:30
devise.sv.yml chore: New translation updates 2021-03-16 00:00:53 +05:30
devise.ta.yml Chore: Include Tamil, Arabic, other language updates (#1018) 2020-07-08 00:59:30 +05:30
devise.th.yml chore: Update translations from Crowdin (#4652) 2022-05-09 18:57:05 +05:30
devise.tl.yml chore: Update translations from Crowdin (#9835) 2024-07-25 11:58:22 -07:00
devise.tr.yml chore: Enable Czech(cs), Turkish(tr), update translations (#1466) 2020-12-01 13:15:17 +05:30
devise.uk.yml chore: Update translations from Crowdin (#4652) 2022-05-09 18:57:05 +05:30
devise.ur_IN.yml chore: Update translations from Crowdin (#4665) 2022-05-13 11:38:49 +05:30
devise.ur.yml chore: Update translations from Crowdin (#4652) 2022-05-09 18:57:05 +05:30
devise.vi.yml chore: Enable Japanese, update translation from Crowdin (#1417) 2020-11-16 23:11:14 +05:30
devise.zh_CN.yml chore: Enable the languages no, zh-CN, hu (#2135) 2021-04-20 16:22:03 +05:30
devise.zh_TW.yml chore: Enable Danish language (#1443) 2020-11-24 23:07:51 +05:30
devise.zh.yml chore: New Translation updates (#3371) 2021-11-12 23:40:08 +05:30
el.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
en.yml feat: baileys provider for whatsapp (#7) 2025-04-03 23:28:38 -03:00
es.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
fa.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
fi.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
fr.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
he.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
hi.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
hr.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
hu.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
hy.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
id.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
is.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
it.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ja.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ka.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ko.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
lt.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
lv.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ml.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ms.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ne.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
nl.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
no.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
pl.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
pt_BR.yml feat: baileys provider for whatsapp (#7) 2025-04-03 23:28:38 -03:00
pt.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ro.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ru.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
secure_password.en.yml feat: Improved password security policy (#2345) 2021-06-07 17:26:08 +05:30
sh.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
sk.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
sl.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
sq.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
sr.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
sv.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ta.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
th.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
tl.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
tr.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
uk.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ur_IN.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
ur.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
vi.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
zh_CN.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
zh_TW.yml chore: Update translations (#11141) 2025-03-21 18:50:52 -07:00
zh.yml chore: New Translation updates (#3371) 2021-11-12 23:40:08 +05:30