Improved lang

This commit is contained in:
WBHarry 2025-07-02 23:32:09 +02:00
parent 4cf7b63e03
commit b90d7dee63
3 changed files with 7 additions and 5 deletions

View file

@ -20,6 +20,11 @@
}
},
"DAGGERHEART": {
"UI": {
"notifications": {
"adversaryMissing": "The linked adversary doesn't exist in the world."
}
},
"Settings": {
"Menu": {
"Automation": {
@ -403,9 +408,6 @@
"label": "Event",
"description": ""
}
},
"Notifications": {
"AdversaryMissing": "The linked adversary doesn't exist in the world."
}
},
"Domains": {

View file

@ -106,7 +106,7 @@ export default class DhpEnvironment extends DaggerheartSheet(ActorSheetV2) {
const target = button.closest('[data-item-uuid]');
const adversary = await foundry.utils.fromUuid(target.dataset.itemUuid);
if (!adversary) {
ui.notifications.warn(game.i18n.localize('DAGGERHEART.Environment.Notifications.AdversaryMissing'));
ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.notifications.adversaryMissing'));
return;
}

View file

@ -182,7 +182,7 @@ export default class DHEnvironmentSettings extends HandlebarsApplicationMixin(Ap
static async #viewAdversary(_, button) {
const adversary = await foundry.utils.fromUuid(button.dataset.adversary);
if (!adversary) {
ui.notifications.warn(game.i18n.localize('DAGGERHEART.Environment.Notifications.AdversaryMissing'));
ui.notifications.warn(game.i18n.localize('DAGGERHEART.UI.notifications.adversaryMissing'));
return;
}