Localize add resource

This commit is contained in:
Carlos Fernandez 2026-07-18 19:26:06 -04:00
parent f091c1849a
commit 47847b5b8d
2 changed files with 3 additions and 3 deletions

View file

@ -104,6 +104,7 @@
"startCountdown": "Start Countdown" "startCountdown": "Start Countdown"
}, },
"damage": { "damage": {
"addResource": "Add Resource",
"multiplier": "Multiplier", "multiplier": "Multiplier",
"flatMultiplier": "Flat Multiplier", "flatMultiplier": "Flat Multiplier",
"markResources": "Mark Resources" "markResources": "Mark Resources"

View file

@ -330,7 +330,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2)
const unused = allKeys.filter(k => !(k in this.action._source.damage.resources)); const unused = allKeys.filter(k => !(k in this.action._source.damage.resources));
const choices = unused.map(k => ({ value: k, label: _loc(CONFIG.DH.GENERAL.healingTypes[k].label) })); const choices = unused.map(k => ({ value: k, label: _loc(CONFIG.DH.GENERAL.healingTypes[k].label) }));
const content = new foundry.data.fields.StringField({ const content = new foundry.data.fields.StringField({
label: _loc('DAGGERHEART.GENERAL.damageType'), label: _loc('DAGGERHEART.GENERAL.Resource.single'),
choices, choices,
required: true required: true
}).toFormGroup({}, { }).toFormGroup({}, {
@ -364,8 +364,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2)
rejectClose: false, rejectClose: false,
modal: false, modal: false,
window: { window: {
/** @todo localize */ title: _loc('DAGGERHEART.ACTIONS.Config.damage.addResource')
title: 'Add Damage'
}, },
position: { width: 300 } position: { width: 300 }
}); });