Using Locales in an app section does not work as described in docs

Corknine
Shopify Partner
61 1 17

Hello,

I'm adding an app section and using the "locales" section for translating  the text content in the section as described in https://help.shopify.com/en/api/guides/modifying-online-store/app-sections#appsectionschema.

For example if my app section was the following

 

{{ "label" | t }}

{% schema %}
{
"name": {
"en": "My Section Title"
}, "locales": { "en": { "label": "My Section Label" } } } {% endschema %}

The app section displays "Translation Missing: en.label" instead of "My Section Label"

Am I doing something wrong or is this in fact broken?

0 Likes
Liam
Shopify Staff
Shopify Staff
649 17 241

Hey there @Corknine,

 

Thanks for flagging this- it does indeed look like there is an issue with the locales property outputting the value you expect here. I've raised this with the team who are currently looking into it, and I'll update here when we've implemented a fix. 

 

Cheers,

 

Liam Griffin

Shopify | Partner Education

Liam | Developer Community Manager @ Shopify 
 - Was my reply helpful? Click Like to let me know! 
 - Was your question answered? Mark it as an Accepted Solution
 - To learn more visit Shopify.dev or the Shopify Web Design and Development Blog

0 Likes