diff --git a/system/scripts/main-l5r5e.js b/system/scripts/main-l5r5e.js index bec720b..b990c8a 100644 --- a/system/scripts/main-l5r5e.js +++ b/system/scripts/main-l5r5e.js @@ -93,16 +93,6 @@ Hooks.once("init", async function () { Items.unregisterSheet("core", JournalSheet); Items.registerSheet("l5r5e", BaseJournalSheetL5r5e, { makeDefault: true }); - // Babele - if (typeof Babele !== "undefined") { - // eslint-disable-next-line no-undef - Babele.get().register({ - module: "../systems/l5r5e", // babele only accept modules, so... well :D - lang: "fr", - dir: "babele/fr-fr", - }); - } - // ***** Handlebars ***** // for debug Handlebars.registerHelper("json", function (...objects) { @@ -190,9 +180,18 @@ Hooks.once("init", async function () { /* ------------------------------------ */ /* Setup system */ /* ------------------------------------ */ -// Hooks.once("setup", function () { -// // Do anything after initialization but before ready -// }); +Hooks.once("setup", function () { + // Do anything after initialization but before ready + // Babele + if (typeof Babele !== "undefined") { + // eslint-disable-next-line no-undef + Babele.get().register({ + module: "../systems/l5r5e", // babele only accept modules, so... well :D + lang: "fr", + dir: "babele/fr-fr", + }); + } +}); /* ------------------------------------ */ /* Do anything once the system is ready */