Exactly, that’s what I thought too. Is this handled differently by the ‘Shopify GraphiQL App’?
Here is the response from the query above when I have my account language in German in Shopify:
{
"data": {
"metaobjectDefinitions": {
"nodes": [
{
"id": "gid://shopify/MetaobjectDefinition/5088969052",
"standardTemplate": {
"name": "Größe",
"type": "shopify--size"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5089263964",
"standardTemplate": {
"name": "Farbe",
"type": "shopify--color-pattern"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5089853788",
"standardTemplate": {
"name": "Zielgeschlecht",
"type": "shopify--target-gender"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5092409692",
"standardTemplate": {
"name": "Schuhgröße",
"type": "shopify--shoe-size"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5101486428",
"standardTemplate": {
"name": "Altersgruppe",
"type": "shopify--age-group"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5101519196",
"standardTemplate": {
"name": "Stoff",
"type": "shopify--fabric"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5117411676",
"standardTemplate": {
"name": "Ausschnitt",
"type": "shopify--neckline"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/9227665756",
"standardTemplate": {
"name": "Zubehörgröße",
"type": "shopify--accessory-size"
}
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 24,
"actualQueryCost": 12,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1988,
"restoreRate": 100
}
}
}
}
The names of the standard template are output in German.
If I now change the account language to English and make the same query again, I get this response:
{
"data": {
"metaobjectDefinitions": {
"nodes": [
{
"id": "gid://shopify/MetaobjectDefinition/5088969052",
"standardTemplate": {
"name": "Size",
"type": "shopify--size"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5089263964",
"standardTemplate": {
"name": "Color",
"type": "shopify--color-pattern"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5089853788",
"standardTemplate": {
"name": "Target gender",
"type": "shopify--target-gender"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5092409692",
"standardTemplate": {
"name": "Shoe size",
"type": "shopify--shoe-size"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5099422044",
"standardTemplate": {
"name": "Material",
"type": "shopify--material"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5101486428",
"standardTemplate": {
"name": "Age group",
"type": "shopify--age-group"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5101519196",
"standardTemplate": {
"name": "Fabric",
"type": "shopify--fabric"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/5117411676",
"standardTemplate": {
"name": "Neckline",
"type": "shopify--neckline"
}
},
{
"id": "gid://shopify/MetaobjectDefinition/9227665756",
"standardTemplate": {
"name": "Accessory size",
"type": "shopify--accessory-size"
}
}
},
"extensions": {
"cost": {
"requestedQueryCost": 24,
"actualQueryCost": 12,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1988,
"restoreRate": 100
}
}
}
}
Now the names of the standard template are displayed in English.
The question here is why the app ‘translates’ and displays the names depending on the language setting.
Even if I change this to French, it is displayed in French, although I have not activated the language in the online shop.
The app must know which language I have selected and pass it somewhere during the query.
I hope you understand it a little better now.