diff --git a/system/scripts/handlebars.js b/system/scripts/handlebars.js index 50643e3..6dd5874 100644 --- a/system/scripts/handlebars.js +++ b/system/scripts/handlebars.js @@ -37,6 +37,14 @@ export const RegisterHandlebars = function () { return sanitizeIfFail(game.i18n.localize(isYes ? "Yes" : "No")); }); + // Replace "localize (localize" for partial var (broken in v14) + Handlebars.registerHelper("localizeEmbedded", function (string, objects) { + Object.keys(objects.hash).forEach(key => { + string = string.replace("{" + key + "}", objects.hash[key]); + }); + return sanitizeIfFail(game.i18n.localize(string)); + }); + /* ------------------------------------ */ /* Dice */ /* ------------------------------------ */ diff --git a/system/templates/actors/actor-export.html b/system/templates/actors/actor-export.html index 377ad82..037c384 100644 --- a/system/templates/actors/actor-export.html +++ b/system/templates/actors/actor-export.html @@ -65,7 +65,7 @@