How to Integrate Metaobject Translations for Size Tags in Liquid Code?

Topic summary

A Shopify store owner is attempting to implement multilingual product size tags using the “Translate and Adapt” feature with metaobjects but cannot retrieve translated values in their Liquid template.

Current Setup:

  • Size information is extracted from product tags using pattern matching (tags containing “-” and “(”)
  • Translations are stored in Category metafields for each product
  • Translation data exists at the metaobject localization path but was not created through Custom Data settings

Technical Challenge:
The existing Liquid code successfully displays size tags but lacks integration with the translation system. The user needs guidance on modifying their code to pull localized size values from metaobjects based on the current locale.

Status: The discussion remains unresolved. An initial solution was attempted but did not work, prompting the user to provide additional context about their metafield structure and translation storage location.

Summarized with AI on November 1. AI used: claude-sonnet-4-5-20250929.

Hi everyone,

I’m trying to add a translation for product sizes in my Shopify store using the “Translate and Adapt” feature. All translations are stored in metaobjects, but I’m unsure how to pull the translated size into my code.

Here’s my current Liquid code:

{% assign size_tag = "" %}
{% for tag in product.tags %}
  {% if tag contains "-" and tag contains "(" %}
    {% assign size_tag = tag %}
  {% endif %}
{% endfor %}

{% if size_tag != "" %}
  

{{ size_tag }}

{% endif %}

My question is: How can I modify this code to retrieve and display the translated size from the metaobjects? Any help or examples would be greatly appreciated!

Thanks in advance for your support.

Thank you for your help! However, your code isn’t working.

To clarify, the information is stored in the Category metafields of each product. In Translate & Adapt, translations for these metafields are located at:
…/translate-and-adapt/localize/metaobject

Additionally, I did not create them in the Custom Data settings.