Skip to content

Commit

Permalink
Merge pull request #72 from kavi87/fix-67-notification-closeall
Browse files Browse the repository at this point in the history
Listen to culture change for message localization
  • Loading branch information
kavi87 committed Apr 14, 2016
2 parents 583be4b + f258847 commit a608e82
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions modules/notifications.js
Original file line number Diff line number Diff line change
Expand Up @@ -327,6 +327,10 @@ define([
notificationService.warn(cultureService.localize('w20.core.notifications.route.error', [cultureService.displayName(current.$$route), reason]));
}]);

eventService.on('w20.culture.culture-changed', ['CultureService', function (cultureService) {
$.jGrowl.defaults.closerTemplate = '<div>' + cultureService.localize('w20.core.notifications.closeall') + '</div>';
}]);

eventService.on('w20.security.authenticated', ['CultureService', 'AuthenticationService', 'NotificationService', '$args', function (cultureService, authenticationService, notificationService, $args) {
notificationService.notify(cultureService.localize('w20.core.notifications.login.authenticated', [$args[0].id]));
}]);
Expand Down

0 comments on commit a608e82

Please sign in to comment.