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:
Blade Barringer
2016-09-10 22:05:25 -05:00
committed by GitHub
parent 295463b210
commit 3d53781bd3
9 changed files with 82 additions and 120 deletions
+6 -6
View File
@@ -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;