Discuss and resolve questions on Liquid, JavaScript, themes, sales channels, and site speed enhancements.
Hello, I have a lot of metafields that I want to translate into another language through the GraphQL API but tried with metafield key and namespace and all I get is that Key [key] is not a valid translatable field
this is the query
mutation translationsRegister($resourceId: ID!, $translations: [TranslationInput!]!) {
translationsRegister(resourceId: $resourceId, translations: $translations) {
userErrors {
message
field
}
translations {
key
value
}
}
}
{
"resourceId": "gid://shopify/Product/xxx",
"translations": [
{
"locale": "ar",
"key": "placeholder",
"value": "placeholder",
"translatableContentDigest": "placeholder"
}
]
}
You need to check on Shopify's "Translate & Adapt" app. If the field is visible and translatable from that app it means you can reproduce it from code. Now if you see your field you need to open your browser's developer console and go to the Network tab, then you do a first translation and analyze the requests sent as in the screenshot I shared.
Sometimes the documentation lacks explanation 😞
Hey Community 👋 Did you know that March 15th is National Everything You Think Is W...
By JasonH Apr 1, 2025Discover how to increase the efficiency of commerce operations with Shopify Academy's l...
By Jacqui Mar 26, 2025Shopify and our financial partners regularly review and update verification requiremen...
By Jacqui Mar 14, 2025