liquid icon indicating copy to clipboard operation
liquid copied to clipboard

Accept `| t` within parameter

Open stijns96 opened this issue 1 month ago • 1 comments

Hi there,

We use quite a lot of snippets to normalise development. We'd like to be able to pass the | t filter to a parameter.

Example

{% liquid
  # Preferred
  render 'button', label: 'product.add_to_cart' | t, type: 'submit'

  # Currently
  assign label = 'product.add_to_cart' | t
  render 'button', label: label, type: 'submit'
%}

stijns96 avatar Nov 25 '25 12:11 stijns96

Hey @stijns96! This is a good idea. There's ongoing foundational work that's happening right now that should hopefully unblock features like this in the future.

graygilmore avatar Nov 27 '25 17:11 graygilmore