Fix for Babele translation
Release Creation / build (release) Successful in 56s

This commit is contained in:
2026-05-25 23:02:08 +02:00
parent 967383f5b3
commit d27d580d8c
145 changed files with 294 additions and 275 deletions
+6 -5
View File
@@ -78,7 +78,7 @@ Hooks.once('init', async function () {
foundry.documents.collections.Items.unregisterSheet("core", foundry.appv1.sheets.ItemSheet);
foundry.documents.collections.Items.registerSheet("bol", sheets.BoLItemSheet, { types: ["item"], makeDefault: true });
foundry.documents.collections.Items.registerSheet("bol", sheets.BoLFeatureSheet, { types: ["feature"], makeDefault: true });
// Debug: Verify AppV2 sheets are loaded
console.log("BoL Item Sheets registered:", {
BoLItemSheet: sheets.BoLItemSheet.name,
@@ -101,11 +101,12 @@ Hooks.once('init', async function () {
// Register hooks
registerHooks()
if (typeof Babele !== 'undefined') {
Babele.get().setSystemTranslationsDir("compendiums");
}
});
/* -------------------------------------------- */
Hooks.once("babele.init", (babele) => {
console.log("Initializing Babele translations")
babele.setSystemTranslationsDir("compendiums");
});