From 1bb7d0b2481a77c5554ee9c1f282380cd9483139 Mon Sep 17 00:00:00 2001 From: pallando Date: Thu, 10 Oct 2024 10:41:09 +0200 Subject: [PATCH] Translate vehicle roles in actors compendium --- modules/babele-register.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/modules/babele-register.js b/modules/babele-register.js index d1de766..c87d325 100644 --- a/modules/babele-register.js +++ b/modules/babele-register.js @@ -518,7 +518,7 @@ Hooks.once('init', () => { } else if (trait_en.type == "vehicleRole") { let validCompendiums = game.wfrp4e.tags.getPacksWithTag("vehicleRole") for (let compData of validCompendiums) { - let role_fr = game.babele.translate(compData.metadata.id, { name: name_en }, true); + let role_fr = game.babele.translate(compData.metadata.id, trait_en, true); if (role_fr?.system) { trait_en.name = role_fr.name || trait_en.name // DEBG: console.log(">>>>> Role ?", role_fr.name );