From 34a58180f28badbc3110a76d574e115d8659a580 Mon Sep 17 00:00:00 2001 From: LeRatierBretonnien Date: Wed, 25 Mar 2020 20:37:09 +0100 Subject: [PATCH] Add babele management --- babele-register.js | 13 +++++++++++++ module.json | 6 +++++- tables/travel.json | 4 ++-- 3 files changed, 20 insertions(+), 3 deletions(-) create mode 100644 babele-register.js diff --git a/babele-register.js b/babele-register.js new file mode 100644 index 0000000..3eeb1c2 --- /dev/null +++ b/babele-register.js @@ -0,0 +1,13 @@ + +Hooks.once('init', () => { + + if(typeof Babele !== 'undefined') { + + Babele.get().register({ + module: 'WH4-fr-translation', + lang: 'fr', + dir: 'compendium' + }); + + } +}); diff --git a/module.json b/module.json index 4212f90..0816345 100644 --- a/module.json +++ b/module.json @@ -2,9 +2,13 @@ "name": "WH4-fr-translation", "title": "Traduction du module WH4 en Français.", "description": "La traduction du module WH4.", - "version": 0.3, + "version": 0.4, "minimumCoreVersion" : "0.5.1", "author": "LeRatierBretonnien", + "esmodules": ["babele-register.js"], + "scripts": [], + "styles": [], + "packs": [], "languages": [{ "lang": "fr", diff --git a/tables/travel.json b/tables/travel.json index 779f1b4..721941a 100644 --- a/tables/travel.json +++ b/tables/travel.json @@ -1,5 +1,5 @@ { - "name": "Travel Table", + "name": "Table de Voyage", "die": "1d10", "rows": [{ "name": "Even Nature Hates You!", @@ -42,4 +42,4 @@ "description": "The Characters encounter someone who appears to help them but has sinister intentions. That bad-smelling guy who knows a shortcut through the Garden of Morr and insists you go first. The charming old aristocrat who invites you to stay for dinner in her ancestral home. The scruffy woman who knows where to find all the 'best' mushrooms. Have fun!", "range": [10, 10] }] -} \ No newline at end of file +}