Fix content name error (#7995)
* fix: correct translation strings for pet/mount names * chore: expose potion and egg key, not object in pet content api * fix: Update feed route to use potion and egg objects * refactor: Update feed route to use petInfo * Use pet/mount text method for name * correct feed route
This commit is contained in:
@@ -26,19 +26,19 @@ function constructSet (type, eggs, potions) {
|
||||
return {
|
||||
key,
|
||||
type,
|
||||
potion,
|
||||
egg,
|
||||
potion: potion.key,
|
||||
egg: egg.key,
|
||||
text,
|
||||
};
|
||||
}
|
||||
|
||||
petInfo[key] = getAnimalData(t('petName', {
|
||||
potion: potion.text(),
|
||||
egg: egg.text(),
|
||||
potion: potion.text,
|
||||
egg: egg.text,
|
||||
}));
|
||||
mountInfo[key] = getAnimalData(t('mountName', {
|
||||
potion: potion.text(),
|
||||
mount: egg.mountText(),
|
||||
potion: potion.text,
|
||||
mount: egg.mountText,
|
||||
}));
|
||||
|
||||
pets[key] = true;
|
||||
|
||||
Reference in New Issue
Block a user