Checkout Translation through TranslationResources and TranslationRegister GraphQL

dedekan
Visitor
1 0 0

Hello,

Hope you all had a good day!!


I want to ask something related to translations. I want change the translation inside checkout page through shopify api with GraphQL using function `TranslationResources` and `TranslationRegister`

I manage to get the checkout translations list using `TranslationResources` with its locale, value, key, and digest.

But when I try to update with updated value (eg: "shopify.checkout.contact.address1_label") inside `TranslationRegister` GraphQL, it said that "locale is invalid", the response is something like below

dedekan_1-1638523170389.png

The payload format that I tried was 

dedekan_2-1638523309617.png

 

Its kind of weird, because I get the key, locale, and digest from `TranslationResources` something like this 

dedekan_3-1638523417157.png


It's "en" locale which is active by default. 

 

Am I missing something? Why the error is "locale is invalid" when "en" locale was retrieved from `TranslationResources`?

Thank you

Replies 0 (0)