Skip to content

Move roll labels into a handlebars helper #62

Description

@orffen

Pass data from the item/actor into the handlebars helper function to return a formatted roll label.

For example:

Handlebars.registerHelper('localizeRollLabel', function(data) {
  return `${game.i18n.localize('BASICFANTASYRPG.Roll')}: ${game.i18n.localize('TYPES.Item.' + item.type)} - ${item.name}`;
});

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

      Milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions