fix: replace hardcoded French bleeding notifications with i18n keys

This commit is contained in:
2026-06-11 21:50:19 +02:00
parent 9b75fd4d96
commit 110ac65ba5
2 changed files with 9 additions and 3 deletions
+3 -1
View File
@@ -624,7 +624,9 @@
"messageLethargyKO": "{spellName} : Lethargy still ongoing ... ( dice result : {roll} )", "messageLethargyKO": "{spellName} : Lethargy still ongoing ... ( dice result : {roll} )",
"messageProgressionKO": "{name} can't attack this second.", "messageProgressionKO": "{name} can't attack this second.",
"messageProgressionOKMonster": "{name} can attack this second with {weapon}.", "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": { "Opponent": {
"FIELDS": {} "FIELDS": {}
+6 -2
View File
@@ -155,7 +155,9 @@ function _registerBleedingHooks() {
const bleeding = _findBleedingActors() const bleeding = _findBleedingActors()
if (bleeding.length) { if (bleeding.length) {
ui.notifications.warn( 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() const bleeding = _findBleedingActors()
if (bleeding.length) { if (bleeding.length) {
ui.notifications.warn( 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(", "),
})
) )
} }
}) })