Skip to content

Commit 5dfa43c

Browse files
committed
Fix translation with angular-translate
1 parent cd33c65 commit 5dfa43c

File tree

4 files changed

+6
-6
lines changed

4 files changed

+6
-6
lines changed

build/angular-growl.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* angular-growl - v0.3.0 - 2013-09-26
2+
* angular-growl - v0.3.0 - 2013-10-01
33
* https://github.com/marcorinck/angular-growl
44
* Copyright (c) 2013 Marco Rinck; Licensed MIT
55
*/
@@ -92,7 +92,7 @@ angular.module('angular-growl').provider('growl', function () {
9292
}
9393
function broadcastMessage(message) {
9494
if (translate) {
95-
message = translate(message);
95+
message.text = translate(message.text);
9696
}
9797
$rootScope.$broadcast('growlMessage', message);
9898
}

build/angular-growl.min.css

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/**
2-
* angular-growl - v0.3.0 - 2013-09-26
2+
* angular-growl - v0.3.0 - 2013-10-01
33
* https://github.com/marcorinck/angular-growl
44
* Copyright (c) 2013 Marco Rinck; Licensed MIT
55
*/

build/angular-growl.min.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/growlFactory.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ angular.module("angular-growl").provider("growl", function() {
8181

8282
function broadcastMessage(message) {
8383
if (translate) {
84-
message = translate(message);
84+
message.text = translate(message.text);
8585
}
8686
$rootScope.$broadcast("growlMessage", message);
8787
}

0 commit comments

Comments
 (0)