From 46b47a5b244d28ebd8f2c3b14f24b96a078087a0 Mon Sep 17 00:00:00 2001 From: Pallando Date: Sun, 10 Nov 2024 14:25:36 +0100 Subject: [PATCH] Add converter for disease incubation/duration units --- modules/babele-register.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/modules/babele-register.js b/modules/babele-register.js index 7779d25..688372b 100644 --- a/modules/babele-register.js +++ b/modules/babele-register.js @@ -662,6 +662,10 @@ Hooks.once('init', () => { // Auto-translate duration "spells_duration_range_target_damage": (value) => { return WFRP4FrTranslation.processSpellContent(value); + }, + // Auto-translate disease duration units + "disease_duration_unit": (unit) => { + return game.i18n.localize(unit).capitalize(); } }); }