Add ability to send message in recipient's language.

Created on 25 July 2023, over 1 year ago
Updated 11 August 2023, over 1 year ago

Problem/Motivation

The module does not respect the language of the recipient and sends notifications in the current language of the site.

Steps to reproduce

Simply add two languages to the site, and send notifications to the recipient in another language than the current site's language.

Proposed resolution

Add the ability to translate messages for each recipient.

✨ Feature request
Status

Needs review

Version

3.0

Component

Code

Created by

πŸ‡ΊπŸ‡¦Ukraine dinazaur

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

  • Issue created by @dinazaur
  • @dinazaur opened merge request.
  • πŸ‡ΊπŸ‡¦Ukraine dinazaur

    Few notes about PR.

    I've implemented a few adjustments so it's easier to add new features:

    • For the notifications I've implemented a new plugin system, so it's much easier to add new notification types, and we don't repeat a lot of code. So right now we have a two notification plugins: sms, mail.
    • All logic that was not related to plugins I've moved to the service
    • Implemented ability to process all entities types inside tokens.
    • Fixed bug inside scheduled notifier in case when from/to sid was "all". It was not working at all.


    What's left to do is:
    1. I don't know why we need two identical configuration entity types. We need to remove sms notifier entity and replace it with simple checkboxes for every plugin that is defined in the system inside WorkflowNotificationForm with additional field inside WorkflowNotification something like "notification_plugins". It will eliminate the tone of code.
    2. To test sms notifications, I don't have time to do it at all.

  • Status changed to Needs review over 1 year ago
  • πŸ‡―πŸ‡΄Jordan Anas_maw

    Big changes

Production build 0.71.5 2024