mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-07-22 03:34:14 +00:00
Correct food
This commit is contained in:
parent
1610a62b82
commit
cbc31cbce1
1 changed files with 6 additions and 1 deletions
|
|
@ -1,4 +1,6 @@
|
|||
import {each, defaults} from 'lodash';
|
||||
import capitalize from 'lodash.capitalize';
|
||||
import camelCase from 'lodash.camelcase';
|
||||
import t from '../helpers/translator';
|
||||
|
||||
const CAN_BUY = false;
|
||||
|
|
@ -48,10 +50,13 @@ let cake = {
|
|||
};
|
||||
|
||||
each(cake, (food, name) => {
|
||||
let camelName = camelCase(name);
|
||||
let capitalizedName = capitalize(camelName);
|
||||
|
||||
defaults(food, {
|
||||
canBuy: CAN_BUY,
|
||||
canDrop: CAN_DROP,
|
||||
text: t(`food${name}`),
|
||||
text: t(`food${capitalizedName}`),
|
||||
});
|
||||
});
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue