mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-16 22:27:26 +01:00
Add translated gear name to open-mystery-item call (#11306)
* Add translated gear name to open-mystery-item call * Fix test * fix mystery item text language
This commit is contained in:
committed by
Matteo Pagliazzi
parent
c8466eec98
commit
6784d23a7c
@@ -24,6 +24,7 @@ module.exports = function openMysteryItem (user, req = {}, analytics) {
|
||||
if (mysteryItems.length === 0) markNotificationAsRead(user);
|
||||
|
||||
item = cloneDeep(content.gear.flat[item]);
|
||||
item.text = content.gear.flat[item.key].text(user.preferences.language);
|
||||
user.items.gear.owned[item.key] = true;
|
||||
|
||||
if (user.markModified) {
|
||||
|
||||
Reference in New Issue
Block a user