Babele is better in setup hook ?
This commit is contained in:
@@ -93,16 +93,6 @@ Hooks.once("init", async function () {
|
|||||||
Items.unregisterSheet("core", JournalSheet);
|
Items.unregisterSheet("core", JournalSheet);
|
||||||
Items.registerSheet("l5r5e", BaseJournalSheetL5r5e, { makeDefault: true });
|
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 *****
|
// ***** Handlebars *****
|
||||||
// for debug
|
// for debug
|
||||||
Handlebars.registerHelper("json", function (...objects) {
|
Handlebars.registerHelper("json", function (...objects) {
|
||||||
@@ -190,9 +180,18 @@ Hooks.once("init", async function () {
|
|||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
/* Setup system */
|
/* Setup system */
|
||||||
/* ------------------------------------ */
|
/* ------------------------------------ */
|
||||||
// Hooks.once("setup", function () {
|
Hooks.once("setup", function () {
|
||||||
// // Do anything after initialization but before ready
|
// 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 */
|
/* Do anything once the system is ready */
|
||||||
|
|||||||
Reference in New Issue
Block a user