translate cart message through translate and adopt app

Topic summary

A user is implementing cart warnings using Liquid code that displays messages when customers mix “Dragon’s Den” products with other items, or add Dragon’s Den products exclusively. The messages currently use translation keys like {{ 'cart.mixed_warning.title' | t }} but need Dutch translations.

Current implementation:

  • Code checks cart items for Dragon’s Den products via title/tags
  • Displays conditional warning messages using Liquid translation filters
  • Translation keys are already structured (e.g., cart.mixed_warning.message1)

Solution provided:
A responder directed the user to Shopify’s translation liquid object documentation, noting the implementation is straightforward. The translation keys are already properly formatted in the code—the user needs to add Dutch translations through the Translate and Adapt app interface for each key (title, message1, message2, etc.).

Summarized with AI on October 26. AI used: claude-sonnet-4-5-20250929.

i am using translate and adapt app for translate website in dutch

i have used this code for a message in cart when customer add product but now i need to translate this message in dutch how to do this ?

{%- assign has_dragonsden = false -%}
{%- assign has_satori = false -%}

{%- for item in cart.items -%}
{%- if item.product.title contains “Dragon’s Den” or item.product.tags contains “dragonsden” -%}
{%- assign has_dragonsden = true -%}
{%- else -%}
{%- assign has_satori = true -%}
{%- endif -%}
{%- endfor -%}

{%- if has_dragonsden and has_satori -%}

{{ 'cart.mixed_warning.title' | t }}
{{ 'cart.mixed_warning.message1' | t }}
{{ 'cart.mixed_warning.message2' | t }}
{{ 'cart.mixed_warning.message3' | t }}
{{ 'cart.mixed_warning.message4' | t }}
{%- endif -%}

{%- assign dragonsden_only = true -%}
{%- for item in cart.items -%}
{%- unless item.product.title contains “Dragon’s Den” or item.product.tags contains “dragonsden” -%}
{%- assign dragonsden_only = false -%}
{%- endunless -%}
{%- endfor -%}

{%- if dragonsden_only -%}

{{ 'cart.dragon_only.title' | t }}
{{ 'cart.dragon_only.message1' | t }}
{{ 'cart.dragon_only.message2' | t }}
{%- endif -%}

You need to use translation liquid object that Shopify provides. Here is the document on how to use this from Shopify: https://shopify.dev/docs/api/liquid/filters/translate
If you want help, don’t hesitate to reach out. It’s pretty simple to change that on code.