Here is what I do for a custom liquid translation with a default English store. It might not be perfect but it works for me:
{% if request.locale.iso_code == ‘fr’ %}
french content
{% else %}
english content
{% endif %}
A French Shopify store owner needs to translate custom liquid sections to English, but Shopify’s Translate & Adapt app doesn’t support this content type.
Official Response:
Shopify staff confirmed custom liquid sections cannot be translated natively. Recommended alternatives include:
Community Solutions:
Translation Keys Method (most comprehensive):
en.default.json, fr.json){{ 'banner.headline' | t }}Conditional Language Check (simpler workaround):
{% if request.locale.iso_code == 'fr' %}
french content
{% else %}
english content
{% endif %}
Outcome:
The original poster resolved their issue using the translation keys API, though eventually switched to Weglot for additional features like app translation. Multiple community members have since requested clarification on implementing these solutions.
Here is what I do for a custom liquid translation with a default English store. It might not be perfect but it works for me:
{% if request.locale.iso_code == ‘fr’ %}
french content
{% else %}
english content
{% endif %}