Localization of name and description for custom fields via Declarative custom data definitions

I am trying to use Declarative custom data definitions to define metafields in shopify.app.toml file. It is working well. However, I am not able to figure out how to localize name and description fields. I tried creating locales/en.default.json file and given t:name, t:description as the name and description in shopify.app.toml and defined them in en.default.json file. But I am not seeing those values being picked up, I see t:name in my dev store. What am I missing? Is this supported?

Hi @arva, thanks for getting in touch. At the moment, only a metafield’s values (as children of a metafield definition, etc) are localizable (not the definitions or their parts like name/description, etc themselves). There’s a bit more info on how to translate metafields here:

For metaobjects, these can’t be localized through the app.toml either, but can be localized via the Localization API here: Use metaobject capabilities (this does only allow the fields of metaobjects to be translated though).

Hope this helps/makes sense, let me know if I can clarify anything on my end here!

Hey @arva - I’ll close this thread out since this has been solved, but let me know if I can help out with anything else :slight_smile: