mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-19 15:48:04 +01:00
fix: Set gems sent notification as translatable string
This commit is contained in:
@@ -104,6 +104,7 @@
|
|||||||
"emailNotifications": "Email Notifications",
|
"emailNotifications": "Email Notifications",
|
||||||
"wonChallenge": "You won a Challenge!",
|
"wonChallenge": "You won a Challenge!",
|
||||||
"newPM": "Received Private Message",
|
"newPM": "Received Private Message",
|
||||||
|
"sentGems": "Sent gems!",
|
||||||
"giftedGems": "Gifted Gems",
|
"giftedGems": "Gifted Gems",
|
||||||
"giftedGemsInfo": "<%= amount %> Gems - by <%= name %>",
|
"giftedGemsInfo": "<%= amount %> Gems - by <%= name %>",
|
||||||
"giftedSubscription": "Gifted Subscription",
|
"giftedSubscription": "Gifted Subscription",
|
||||||
|
|||||||
@@ -41,7 +41,7 @@ habitrpg
|
|||||||
$scope.sendGift = function (uuid, gift) {
|
$scope.sendGift = function (uuid, gift) {
|
||||||
Members.transferGems($scope.gift.message, uuid, $scope.gift.gems.amount)
|
Members.transferGems($scope.gift.message, uuid, $scope.gift.gems.amount)
|
||||||
.then(function (response) {
|
.then(function (response) {
|
||||||
Notification.text('Gift sent!')
|
Notification.text(window.env.t('sentGems'));
|
||||||
$rootScope.User.sync();
|
$rootScope.User.sync();
|
||||||
$scope.$close();
|
$scope.$close();
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user