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

Highlighted
Shopify Partner
55 1 11

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
Highlighted
Shopify Staff
Shopify Staff
635 16 205

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 Griffin
Shopify | Developer Community Manager
0 Likes