mirror of
https://github.com/HabitRPG/habitica.git
synced 2025-12-18 15:17:25 +01:00
enable translated pet names in hatching success message (#10231)
This commit is contained in:
@@ -351,7 +351,7 @@ export default {
|
||||
},
|
||||
hatchPet (potion, egg) {
|
||||
this.$store.dispatch('common:hatch', {egg: egg.key, hatchingPotion: potion.key});
|
||||
this.text(this.$t('hatchedPet', {egg: egg.key, potion: potion.key}));
|
||||
this.text(this.$t('hatchedPet', {egg: egg.text, potion: potion.text}));
|
||||
if (this.user.preferences.suppressModals.hatchPet) return;
|
||||
const newPet = createAnimal(egg, potion, 'pet', this.content, this.user.items);
|
||||
this.$root.$emit('hatchedPet::open', newPet);
|
||||
|
||||
@@ -875,7 +875,7 @@
|
||||
this.closeHatchPetDialog();
|
||||
|
||||
this.$store.dispatch('common:hatch', {egg: pet.eggKey, hatchingPotion: pet.potionKey});
|
||||
this.text(this.$t('hatchedPet', {egg: pet.eggKey, potion: pet.potionKey}));
|
||||
this.text(this.$t('hatchedPet', {egg: pet.eggName, potion: pet.potionName}));
|
||||
},
|
||||
onDragStart (ev, food) {
|
||||
this.currentDraggingFood = food;
|
||||
|
||||
Reference in New Issue
Block a user