Skip to content

armgit / zulip

Public Imported from GitHub
0

Zulip server and web application. Open-source team chat that helps teams stay productive and focused.

message_notifications: Translate private message content.

Aman Agrawal2d2e2f8882b4
diff --git a/web/src/message_notifications.js b/web/src/message_notifications.js
index 781130a6c3c..368035fe99f 100644
--- a/web/src/message_notifications.js
+++ b/web/src/message_notifications.js
@@ -41,7 +41,10 @@ function get_notification_content(message) {
(message.type === "private" || message.type === "test-notification") &&
!user_settings.pm_content_in_desktop_notifications
) {
- content = "New direct message from " + message.sender_full_name;
+ content = $t(
+ {defaultMessage: "New direct message from {sender_full_name}"},
+ {sender_full_name: message.sender_full_name},
+ );
}
return content;