Skip to content

Commit

Permalink
chore: added language to ace message sent event (#328)
Browse files Browse the repository at this point in the history
* chore: added language to ace message sent event

* fix: fixed lint errors

* chore: updated ace version
  • Loading branch information
eemaanamir authored Jan 24, 2025
1 parent c764010 commit 2435049
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 1 addition & 1 deletion edx_ace/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
from .recipient import Recipient
from .recipient_resolver import RecipientResolver

__version__ = '1.11.3'
__version__ = '1.11.4'


__all__ = [
Expand Down
4 changes: 4 additions & 0 deletions edx_ace/utils/signals.py
Original file line number Diff line number Diff line change
@@ -1,6 +1,8 @@
"""
Utils for signals.
"""
from django.utils import translation

from edx_ace.signals import ACE_MESSAGE_SENT


Expand Down Expand Up @@ -42,5 +44,7 @@ def send_ace_message_sent_signal(channel, message):
'options': message.options,
'uuid': str(message.uuid),
'send_uuid': str(message.send_uuid),
'message_language': message.language,
'translation_language': translation.get_language()
}
ACE_MESSAGE_SENT.send(sender=channel, message=make_serializable_object(data))

0 comments on commit 2435049

Please sign in to comment.