mirror of
https://github.com/sudoxnym/habitica.git
synced 2026-05-25 15:15:52 +00:00
improve(i18n): move potion to strings, add content.json for generic content
This commit is contained in:
parent
fdfbd17cf7
commit
85d0ebbc8e
3 changed files with 11 additions and 3 deletions
8
dist/habitrpg-shared.js
vendored
8
dist/habitrpg-shared.js
vendored
|
|
@ -11255,8 +11255,12 @@ _.each(gearTypes, function(type) {
|
|||
|
||||
api.potion = {
|
||||
type: 'potion',
|
||||
text: "Health Potion",
|
||||
notes: "Recover 15 Health (Instant Use)",
|
||||
text: (function() {
|
||||
return i18n.t('potionText');
|
||||
}),
|
||||
notes: (function() {
|
||||
return i18n.t('potionNotes');
|
||||
}),
|
||||
value: 25,
|
||||
key: 'potion'
|
||||
};
|
||||
|
|
|
|||
4
locales/en/content.json
Normal file
4
locales/en/content.json
Normal file
|
|
@ -0,0 +1,4 @@
|
|||
{
|
||||
"potionText": "Potion",
|
||||
"potionNotes": "Recover 15 Health (Instant Use)"
|
||||
}
|
||||
|
|
@ -300,7 +300,7 @@ _.each gearTypes, (type) ->
|
|||
---------------------------------------------------------------
|
||||
###
|
||||
|
||||
api.potion = type: 'potion', text: "Health Potion", notes: "Recover 15 Health (Instant Use)", value: 25, key: 'potion'
|
||||
api.potion = type: 'potion', text: (-> i18n.t('potionText')), notes: (-> i18n.t('potionNotes')), value: 25, key: 'potion'
|
||||
|
||||
###
|
||||
---------------------------------------------------------------
|
||||
|
|
|
|||
Loading…
Reference in a new issue