Our Partner & Developer boards on the community are moving to a brand new home: the .dev community forums! While you can still access past discussions here, for all your future app and storefront building questions, head over to the new forums.

Translation for app extension liquid settings

Translation for app extension liquid settings

sancuscommerce
Shopify Partner
19 1 3

I am writing an app extension and want to provide the ability to translate a liquid setting into various languages.

 

For example, my liquid block page has this:

<h2 class="inline-richtext h2">
{{ block.settings.heading }}
</h2>

{% schema %}
{
  ...
  "settings": [
    {
"type": "text",
"id": "heading",
"label": "Heading",
"default": "My App Heading"
}
  ]
}
{% endschema %}
This setting only allows it to be set for 1 language. If a store has both en and fr as languages, I want it to be able to display the appropriate version. How do we make it so that the settings are translatable? Normally, I would include a locales file, but for custom block section settings, how do we achieve that same functionality?
 
 
Replies 0 (0)