Schema locale files

暂不支持

Schema locale files host translation strings for various setting schema attributes so that content in the theme editor can be translated to the store's active language.

Translatable attributes

The following setting schema attributes can be translated:

ParentAttribute
All settingsinfo
label
settings_schema.json

Section {% schema %}

block
name
selectgroup
html
number
text
textarea
video_url
placeholder
range unit
header
paragraph
content
presets name
category

Reference schema translations

Schema translations can be accessed with code in the the following format:

t:translation_group.translation_category.translation_name

For example, to make the name attribute of the product.liquid section translatable, use the following:

{
  "sections": {
    "product": {
      "name": "Product"
    }
  }
}
{% schema %}
{
  "name": "t:sections.product.name",
}
{% endschema %}