Translations of theme editor input labels

Translations of theme editor input labels

bob3000
Visitor
1 0 0

Hi,

I'm currently writing an app with a theme app extension and I'm running into trouble getting any translations for the input fields in the theme editor. The UI looks like that

 

Screenshot from 2022-02-10 13-10-17.png

 

In the example app there is no example on this specific matter.

https://github.com/Shopify/product-reviews-sample-app/blob/main/theme-app-extension/blocks/product-r...

 

I tried to get it to work like it's recommended in this brief section without any luck

https://shopify.dev/themes/architecture/sections/section-schema#locales

 

To get the "name" label translated I tried the following according to the instructions above

{% schema %}
{
  "name": "t:sections.daily-card.name",
  "templates": ["product"],
  "target": "section",
  "locales": {
    "en": {
      "daily-card": {
        "name": "daily card"
      }
    }
  },
  "settings": []
}

 

Any suggestions on how to deliver translations for the theme editor input fields and labels within an app?

Replies 0 (0)