About the liquid

Solved
Highlighted
Tourist
11 1 0

I found some filters in my theme but I don't know what are they.

for example:

  {{ 'general.meta.tags' | t: tags: current_tags_joined }}

  {{ 'products.product.will_be_in_stock_after' | t: date: '[date]' | json }}

 

what is 't'?

what is 'json'?

 

And I can't find some Description in your document:

https://help.shopify.com/en/themes/liquid/filters

https://github.com/Shopify/liquid/blob/master/lib/liquid/standardfilters.rb

 

Let me continue to associate with how many such unknown grammars are not listed in the document.

0 Likes

Success.

Shopify Staff
Shopify Staff
552 31 66

Hey, @moziliang !

 

Katy here from Shopify. I hope all is well with you. Although you did not find the exact answer in our guides, it is great to see that you have been exploring them.

 

  • The `t` refers to `translation` in this case.  This is located under 'international requirements for themes' rather than within standard filters. We have some more detailed information on this here, as well as info on working with this filter.

 

 

We also have our Liquid Cheat Sheet here which you may find useful. 

 

I hope this helps - though if you have any other queries at all do feel free to let me know.

 

Cheers,
Katy

 

Katy | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

1 Like
Tourist
11 1 0

Thanks for your reply!

 

I find them in the document.

 

I hope that the documents belonging to the filters can also appear in the filters category.

for example: 

  t, handle

 

Because for developers, we can only judge what we can see according to what our eyes can see.

Hope to adopt.

Thanks again.

 

0 Likes
Shopify Staff
Shopify Staff
552 31 66

Thanks for your reply, @moziliang !

 

The 'handle' filter can be found under 'String Filters' in the filter section. Although the 'translation' filter relates to internationalization, I do see your point. Thanks for sharing your thoughts here -  I will pass this along as feedback to our internal team on your behalf. 

 

I am however glad that you have been able to find the resources that you need. If you have any questions or indeed further feedback, feel free to let me know. 

 

Cheers,

Katy

Katy | Social Care @ Shopify
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit the Shopify Help Center or the Shopify Blog

0 Likes