I'm developing a theme extension that uses en.default.schema.json to also translate the configurable properties of the block. The idea is that I will offer this app in multiple markets, not just en.
See this snippet from my app's en.default.schema.json:
{
"common": {
"settings": {
"font_size_label": "Font Size",
"color_label": "Color",
"font_size": {
"normal": "Normal",
"small": "Small",
"extra_small": "Extra Small"
},
"margin_top": "Top margin adjustment"
}
}
}
When you go to add the block to your theme, you see that everything else is translated properly except the radios:

However, if you save your theme, then reload, you'll see that the font size options are now i18n'd properly:

Here's a gif of the process of me adding, seeing bug, saving theme, reloading, and seeing bug resolve:

I thought I was going insane but I believe this is just a Shopify bug. I tried different nestings of keys (e.g., common.settings.foo), namings, etc, radio options just seem to be bugged.
You should be able to replicate this with this shop & theme (feel free to play with it, this is an older demo store that I'm not using actively) https://admin.shopify.com/store/qunit-price-demo-store/themes/143642493204/editor?previewPath=%2Fproducts%2Fblueberry-shampoo&block=template--17897272017172__main%2Ffd29d93c-4ad0-4c9f-8b35-5395c6e8a214§ion=template--17897272017172__main
by adding and removing the Unit Price or the Unit block.
I fear that my app will be rejected in review because of this.
I'm developing a theme extension that uses
en.default.schema.jsonto also translate the configurable properties of the block. The idea is that I will offer this app in multiple markets, not justen.See this snippet from my app's en.default.schema.json:
{ "common": { "settings": { "font_size_label": "Font Size", "color_label": "Color", "font_size": { "normal": "Normal", "small": "Small", "extra_small": "Extra Small" }, "margin_top": "Top margin adjustment" } } }When you go to add the block to your theme, you see that everything else is translated properly except the radios:

However, if you save your theme, then reload, you'll see that the font size options are now i18n'd properly:

Here's a gif of the process of me adding, seeing bug, saving theme, reloading, and seeing bug resolve:

I thought I was going insane but I believe this is just a Shopify bug. I tried different nestings of keys (e.g.,
common.settings.foo), namings, etc, radio options just seem to be bugged.You should be able to replicate this with this shop & theme (feel free to play with it, this is an older demo store that I'm not using actively) https://admin.shopify.com/store/qunit-price-demo-store/themes/143642493204/editor?previewPath=%2Fproducts%2Fblueberry-shampoo&block=template--17897272017172__main%2Ffd29d93c-4ad0-4c9f-8b35-5395c6e8a214§ion=template--17897272017172__mainby adding and removing the
Unit Priceor theUnitblock.I fear that my app will be rejected in review because of this.