{{ 'sections' | t }}
{% schema %}
{
"name": "t:sections_title_title",
"settings": [
{
"type": "text",
"id": "example_setting",
"label": {
"en": "Example Setting",
"fr": "Paramètre Exemple"
}
}
],
"presets": [
{
"name": {
"en": "Slideshow",
"fr": "Diaporama"
}
}
],
"locales": {
"en": {
"sections_title": "Slideshow"
},
"fr": {
"sections_title": "Diaporama"
}
}
}
{% endschema %}
While using {{ ‘sections’ | t }}, it works fine in the Shopify theme. However, I’m getting a warning from theme-check stating: “Incorrect type. Expected ‘string’” for the “label”: { “en”: “Example Setting”, “fr”: “Paramètre Exemple” }" section.
How can I properly translate the section for localization? What adjustments do I need to make?
Thank you, guys!