From 110ac65ba5296f4c560183ee6dc4bcef1618a65f Mon Sep 17 00:00:00 2001 From: LeRatierBretonnier Date: Thu, 11 Jun 2026 21:50:19 +0200 Subject: [PATCH] fix: replace hardcoded French bleeding notifications with i18n keys --- lang/en.json | 4 +++- lethal-fantasy.mjs | 8 ++++++-- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/lang/en.json b/lang/en.json index 67c28da..13899ae 100644 --- a/lang/en.json +++ b/lang/en.json @@ -624,7 +624,9 @@ "messageLethargyKO": "{spellName} : Lethargy still ongoing ... ( dice result : {roll} )", "messageProgressionKO": "{name} can't attack this second.", "messageProgressionOKMonster": "{name} can attack this second with {weapon}.", - "messageProgressionKOMonster": "{name} can't attack this second (dice result {roll})." + "messageProgressionKOMonster": "{name} can't attack this second (dice result {roll}).", + "bleedingCombatEnd": "Bleeding active out of combat: {names}", + "bleedingCombatStart": "Bleeding still active on: {names}" }, "Opponent": { "FIELDS": {} diff --git a/lethal-fantasy.mjs b/lethal-fantasy.mjs index 13e6004..4c217df 100644 --- a/lethal-fantasy.mjs +++ b/lethal-fantasy.mjs @@ -155,7 +155,9 @@ function _registerBleedingHooks() { const bleeding = _findBleedingActors() if (bleeding.length) { ui.notifications.warn( - `Saignement actif hors combat : ${bleeding.map(a => a.name).join(", ")}` + game.i18n.format("LETHALFANTASY.Notifications.bleedingCombatEnd", { + names: bleeding.map(a => a.name).join(", "), + }) ) } }) @@ -164,7 +166,9 @@ function _registerBleedingHooks() { const bleeding = _findBleedingActors() if (bleeding.length) { ui.notifications.warn( - `Saignement toujours actif sur : ${bleeding.map(a => a.name).join(", ")}` + game.i18n.format("LETHALFANTASY.Notifications.bleedingCombatStart", { + names: bleeding.map(a => a.name).join(", "), + }) ) } })