From 47847b5b8d0aa79e9416e22bcaac96d96bd06bd0 Mon Sep 17 00:00:00 2001 From: Carlos Fernandez Date: Sat, 18 Jul 2026 19:26:06 -0400 Subject: [PATCH] Localize add resource --- lang/en.json | 1 + module/applications/sheets-configs/action-base-config.mjs | 5 ++--- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/lang/en.json b/lang/en.json index bf5f7e70..b65cade7 100755 --- a/lang/en.json +++ b/lang/en.json @@ -104,6 +104,7 @@ "startCountdown": "Start Countdown" }, "damage": { + "addResource": "Add Resource", "multiplier": "Multiplier", "flatMultiplier": "Flat Multiplier", "markResources": "Mark Resources" diff --git a/module/applications/sheets-configs/action-base-config.mjs b/module/applications/sheets-configs/action-base-config.mjs index 920cb6d0..b04a6283 100644 --- a/module/applications/sheets-configs/action-base-config.mjs +++ b/module/applications/sheets-configs/action-base-config.mjs @@ -330,7 +330,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2) 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 content = new foundry.data.fields.StringField({ - label: _loc('DAGGERHEART.GENERAL.damageType'), + label: _loc('DAGGERHEART.GENERAL.Resource.single'), choices, required: true }).toFormGroup({}, { @@ -364,8 +364,7 @@ export default class DHActionBaseConfig extends DaggerheartSheet(ApplicationV2) rejectClose: false, modal: false, window: { - /** @todo localize */ - title: 'Add Damage' + title: _loc('DAGGERHEART.ACTIONS.Config.damage.addResource') }, position: { width: 300 } });