{%- comment -%} Spanish label for a Shopify sort value. Usage: {% render 'sort-label', value: option.value, fallback: option.name %} {%- endcomment -%} {%- case value -%} {%- when 'manual' -%}{{ 'facets.sort.manual' | t }} {%- when 'most-relevant', 'relevance' -%}{{ 'facets.sort.relevance' | t }} {%- when 'best-selling' -%}{{ 'facets.sort.best_selling' | t }} {%- when 'title-ascending' -%}{{ 'facets.sort.title_ascending' | t }} {%- when 'title-descending' -%}{{ 'facets.sort.title_descending' | t }} {%- when 'price-ascending' -%}{{ 'facets.sort.price_ascending' | t }} {%- when 'price-descending' -%}{{ 'facets.sort.price_descending' | t }} {%- when 'created-ascending' -%}{{ 'facets.sort.created_ascending' | t }} {%- when 'created-descending' -%}{{ 'facets.sort.created_descending' | t }} {%- else -%}{{ fallback | escape }} {%- endcase -%}