Files
season/snippets/facet-label.liquid

20 lines
1012 B
Plaintext

{%- comment -%}
Spanish label for Shopify-generated filter names/values (the store's default language is English).
Usage: {% render 'facet-label', text: filter.label %}
{%- endcomment -%}
{%- assign facet_key = text | strip | downcase -%}
{%- case facet_key -%}
{%- when 'availability' -%}{{ 'facets.labels.availability' | t }}
{%- when 'in stock' -%}{{ 'facets.labels.in_stock' | t }}
{%- when 'out of stock' -%}{{ 'facets.labels.out_of_stock' | t }}
{%- when 'price' -%}{{ 'facets.labels.price' | t }}
{%- when 'product type' -%}{{ 'facets.labels.product_type' | t }}
{%- when 'brand', 'vendor' -%}{{ 'facets.labels.brand' | t }}
{%- when 'size' -%}{{ 'facets.labels.size' | t }}
{%- when 'color', 'colour' -%}{{ 'facets.labels.color' | t }}
{%- when 'tags', 'tag' -%}{{ 'facets.labels.tags' | t }}
{%- when 'category' -%}{{ 'facets.labels.category' | t }}
{%- when 'collection', 'collections' -%}{{ 'facets.labels.collection' | t }}
{%- else -%}{{ text | escape }}
{%- endcase -%}