Hey @Alan_G here is simplified request along with request ids, queries and response payloads.
fragments
fragment BaseCart on Cart {
id,
buyerIdentity {
countryCode,
email,
phone,
customer {
id,
email
}
},
lines(first: 250) {
nodes {
merchandise {
...ProductVariantWithProductSimplifiedMetaFields
},
quantity,
}
}
}
fragment ProductVariantWithProductSimplifiedMetaFields on ProductVariant {
id,
title,
product {
title,
options {
name,
optionValues {
id,
name,
swatch {
color,
image {
alt,
id
}
}
}
}
},
selectedOptions {
value,
name,
},
}
Mutation RequestID: 35b4490b-a66a-4aaf-b3b3-195f9bc8f711-1757677127
Mutation
mutation AddCartLineItems(
$cartID: ID!,
$lineItems: [CartLineInput!]!,
) @inContext(country: PT, language: PT_PT) {
cartLinesAdd(
cartId: $cartID,
lines: $lineItems
) {
userErrors {
field,
message
},
cart {
...BaseCart
}
}
}
Query RequestID: f727c98d-cadc-4ca0-a7ee-a9b44efed90c-1757677410
Query
query GetCart(
$cartID: ID!,
) @inContext(country: PT, language: PT_PT) {
cart(id: $cartID) {
...BaseCart
}
}
Mutation Response
{
"data": {
"cartLinesAdd": {
"userErrors": [],
"cart": {
"id": "gid://shopify/Cart/hWN2tAnYGbmBNS1xPKrwnDO7?key=30018961ec216917d2f352e31e7a9555",
"buyerIdentity": {
"countryCode": "PT",
"email": null,
"phone": null,
"customer": null
},
"lines": {
"nodes": [
{
"merchandise": {
"id": "gid://shopify/ProductVariant/50550857761095",
"title": "3-4 Years",
"product": {
"title": "Cotton Sweatshirt with Colour Block for Girls 'Minnie', Multicolour",
"options": [
{
"name": "Size",
"optionValues": [
{
"id": "gid://shopify/ProductOptionValue/4294522405191",
"name": "3-4 Years",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522437959",
"name": "4-5 Years",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522470727",
"name": "5-6 Years",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522503495",
"name": "6-7 Years",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522536263",
"name": "7-8 Years",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522569031",
"name": "8-9 Years",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522601799",
"name": "9-10 Years",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522634567",
"name": "11-12 Years",
"swatch": null
}
]
}
]
},
"selectedOptions": [
{
"value": "3-4 Years",
"name": "Size"
}
]
},
"quantity": 3
}
]
}
}
}
},
"extensions": {
"context": {
"country": "PT",
"language": "EN"
},
"cost": {
"requestedQueryCost": 103
}
}
}
Query Response
{
"data": {
"cart": {
"id": "gid://shopify/Cart/hWN2tAnYGbmBNS1xPKrwnDO7?key=30018961ec216917d2f352e31e7a9555",
"buyerIdentity": {
"countryCode": "PT",
"email": null,
"phone": null,
"customer": null
},
"lines": {
"nodes": [
{
"merchandise": {
"id": "gid://shopify/ProductVariant/50550857761095",
"title": "3-4 Anos",
"product": {
"title": "Sweat de Algodão com Colorblock para Menina 'Minnie', Multicolor",
"options": [
{
"name": "Size",
"optionValues": [
{
"id": "gid://shopify/ProductOptionValue/4294522405191",
"name": "3-4 Anos",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522437959",
"name": "4-5 Anos",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522470727",
"name": "5-6 Anos",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522503495",
"name": "6-7 Anos",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522536263",
"name": "7-8 Anos",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522569031",
"name": "8-9 Anos",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522601799",
"name": "9-10 Anos",
"swatch": null
},
{
"id": "gid://shopify/ProductOptionValue/4294522634567",
"name": "11-12 Anos",
"swatch": null
}
]
}
]
},
"selectedOptions": [
{
"value": "3-4 Anos",
"name": "Size"
}
]
},
"quantity": 3
}
]
}
}
},
"extensions": {
"context": {
"country": "PT",
"language": "PT_PT"
},
"cost": {
"requestedQueryCost": 92
}
}
}
As you can see in the payload, the query response answer with the correct language tag and the correct products name, while the mutation does not.
As you can see, in both cases the country is PT and language PT_PT and buyer identity country is also PT. However the mutation completely ignores the language tag while the query does not.