Commit 01991144 authored by Curtis Adam's avatar Curtis Adam

Use the same language setting for web-push and mail notifications

parent a6934b36
...@@ -40,7 +40,7 @@ export class WebNotifier { ...@@ -40,7 +40,7 @@ export class WebNotifier {
throw new Meteor.Error("not-authorized"); throw new Meteor.Error("not-authorized");
} else { } else {
var notifier = new Notifications(); var notifier = new Notifications();
var message = TAPi18n.__('notifications.content') + cardset.name + TAPi18n.__('notifications.cards') + notifier.getActiveCardsCount(cardset._id, user_id) + this.getDeadline(cardset, user_id); var message = TAPi18n.__('notifications.content', null, Meteor.settings.mail.language) + cardset.name + TAPi18n.__('notifications.cards', null, Meteor.settings.mail.language) + notifier.getActiveCardsCount(cardset._id, user_id) + this.getDeadline(cardset, user_id);
Meteor.call("sendPushNotificationsToUser", user_id, message); Meteor.call("sendPushNotificationsToUser", user_id, message);
} }
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment