I am using following GraphQL API for fetching products and its variants contents:
query {
translatableResourcesByIds(first:10, resourceIds: [“gid://shopify/Product/6594632155179”, “gid://shopify/ProductVariant/39409348214827”, “gid://shopify/ProductVariant/39409348247595”, “gid://shopify/ProductVariant/39409348280363”, “gid://shopify/ProductVariant/39409348313131”, “gid://shopify/ProductVariant/39409348345899”, “gid://shopify/ProductVariant/39409348378667”]) {
edges {
node {
resourceId
translations(locale: “fr”) {
key
value
locale
}
translatableContent{
key
value
digest
locale
}
}
}
}
}
Query: How we can pass Language (Local) like “FR, ES etc.” in the Translatable Content API to get products and its variants in other languages as well?
Thanks in advance.