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:
Parent | Attribute |
---|---|
All settings | info label |
settings_schema.json Section {% schema %} block | name |
select | group |
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 %}
Updated about 3 years ago