Localize error message

luk156
Shopify Partner
3 0 0

I've develop a function to validate my cart,

I can return a translated string?

 

return {
"target": field,
"localizedMessage": "string_key"
}
Reply 1 (1)
luk156
Shopify Partner
3 0 0

dont' work:

 

Screenshot 2023-10-30 at 17.12.37.png