Liquid - How to translate a custom section?

KH86
New Member
3 0 0

Hey folks!

I created a custom section and set the filter for translation (t).
How can I access this element and translate it in my locales json.
So far I only get the error („Translation missing: en“)

{% schema %}
{
 "name": "Custom Newsletter Footer",
 "settings": [
   {
     "type": "text",
 "label": "Title",
     "id": "section_title",
 "default": "Let's keep the conversation going"
   },
   {
     "type": "text",
     "label": "Subtitle",
     "id": "newsletter_text",
     "default": "Receive our newsletter and discover our stories, collections and suprises."
   },
   {
     "type": "text",
 "label": "Subtitle Newsletter",
     "id": "newsletter_addition",
     "default": "*You can revoke your consent at anytime. For further details please visit the Privacy Policy."
   },
{
     "type": "text",
 "label": "Rights Reserved",
     "id": "newsletter_rights_reserved",
     "default": "© SIBEL HUHN ALL RIGHTS RESERVED."
   }
 ],
 "presets": [
   {
     "name": "Custom Newsletter Footer",
     "category": "Text"
   }
 ]
}
{% endschema %}

0 Likes
abertram3
New Member
1 0 0

Did you found a solution for this?

0 Likes

Hi @KH86,

I don't understand, with the error "Translation missing", you need to go to the language editor and enter it.

Refer https://help.shopify.com/en/manual/online-store/themes/language/change-wording

Hope it helps!

If my answer can help you solve your issue, please mark it as a solution. Thank you and good luck.

LitExtension - #1 Shopping Cart Migration Expert
If our answer is helpful then please accept as solution!
Are you looking for a solution to migrate to Shopify? Contact us for further assistance.
Try our FREE DEMO now!
0 Likes