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

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

Andrew-Corknine
Explorer
76 1 29

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?

Replies 2 (2)

Liam
Community Manager
3108 340 871

Hey there @Andrew-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 Advocate @ 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

Andrew-Corknine
Explorer
76 1 29

Hi @Liam ,

This seems to be working now, though I cannot see how a merchant would edit the locales/translations if they want to use different wording.  Is that possible in an app section like this?