diff --git a/module/system/handlebars-manager.mjs b/module/system/handlebars-manager.mjs index 5b81fc5..5149280 100644 --- a/module/system/handlebars-manager.mjs +++ b/module/system/handlebars-manager.mjs @@ -98,8 +98,9 @@ export const registerHandlebarsHelpers = function () { }); // search translation with variables - Handlebars.registerHelper('smarttl', function (arrayLabel, objectLabel, options) { - return game.i18n.localize(arrayLabel + "." + objectLabel + ".name"); + Handlebars.registerHelper('smarttl', function (arrayLabel, objectLabel, key) { + if (!key || typeof key !== 'string') key = 'name'; + return game.i18n.localize(arrayLabel + "." + objectLabel + "." + key); }); // Return an object of skills ordered alphabetically by their localized diff --git a/templates/actor/appv2/character-totem.hbs b/templates/actor/appv2/character-totem.hbs index 0ac2652..429ced5 100644 --- a/templates/actor/appv2/character-totem.hbs +++ b/templates/actor/appv2/character-totem.hbs @@ -13,10 +13,10 @@
{{smarttl "TOTEMS" system.identity.totem "description"}}
{{smarttl "TOTEMS" system.identity.totem "description"}}