Translating custom liquid

Topic summary

A user needs to translate two custom liquid sections on their product page into German. The Translate & Adapt app doesn’t detect these custom liquid boxes, and the user is uncomfortable editing code directly.

Solution Provided:
A community member shared a Liquid code snippet using conditional logic to display different content based on shop locale:

  • Uses {% if shop.locale == 'de' %} to check for German language
  • Allows separate content blocks for German and default language
  • Code should be implemented directly in the custom liquid sections

Outcome:
The solution was successfully implemented (with assistance from the helper), allowing the custom liquid content to display in German when appropriate. The user later requested clarification on where to find and edit the translated text in the code, which was confirmed to be located within the custom liquid boxes themselves.

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

Hello @mariannemca ,

Could you please provide the URL/ password to your store so that I can check it and provide you with the exact solution?