LangShop and Shopify Metafields: Retrieving Translations via API?

Hi everyone,

I’m currently using the Shopify app LangShop to set up a multilingual store. The app works great for translating products and content, but I’m facing a challenge with metafield translations.

My goal is to retrieve the translated metafields through the Shopify GraphQL API. Here are my questions:

  1. Are translations stored in the Shopify system? I’ve read that LangShop saves translations directly into Shopify, so they should be accessible through the API rather than only appearing in the frontend. Has anyone had experience with this?

  2. How should I query translated metafields? I’ve tried to retrieve metafields for a product, including translations using translations(locale: "de"), but it doesn’t seem to work. Does anyone know the correct query format?

  3. Does LangShop pass metafields to Shopify at all? Or does the app only store these translations internally? If that’s the case, I may need to use the LangShop API (if available). Has anyone found a solution to export translated metafields?

If anyone has experience working with LangShop and has faced similar issues, I’d appreciate any tips or workarounds!

Thanks in advance for your help! :blush:

To describe this a bit more precisely, with the following query:

{
product(id: “gid://shopify/Product/ID”) {
translations(locale: “de”) {
key
value
}
}
}
I get translations for like the description of the product.

But with this query:
{
product(id: “gid://shopify/Product/ID”) {
metafields(first: 100) {
edges {
node {
namespace
key
value
translations(locale: “de”) {
key
value
}
}
}
}
}
}

I get this error message: “Field ‘translations’ doesn’t exist on type ‘Metafield’”

Translations on your query only exist on the product not the metafield.

To get the metafield translated content via Admin API you would need to use this translatableResource - GraphQL Admin

Or you can get it via the Storefront API using the inContext parameter Storefront API reference