The query below is supposed to return the corresponding translation, but instead it returns nothing under translation, even though the resource gets translated in the admin panel.
For example “Bank Deposit” will be translated to “Depósito Bancário” in Portuguese, but nothing shows up here:
query TranslatePayment {
translatableResource(resourceId: "gid://shopify/PaymentGateway/80760406169") {
resourceId
translatableContent {
value
locale
key
}
translations(locale: "pt-BR") {
key
value
}
}
}
Result
{
"data": {
"translatableResources": {
"nodes": [
{
"resourceId": "gid://shopify/PaymentGateway/80760406169",
"translations": [],
"translatableContent": [
{
"key": "name",
"value": "Cash on Delivery (COD)",
"locale": "pt-BR"
},
{
"key": "message",
"value": "",
"locale": "pt-BR"
},
{
"key": "before_payment_instructions",
"value": "",
"locale": "pt-BR"
}
]
},
{
"resourceId": "gid://shopify/PaymentGateway/80760438937",
"translations": [],
"translatableContent": [
{
"key": "name",
"value": "Bank Deposit",
"locale": "pt-BR"
},
{
"key": "message",
"value": "",
"locale": "pt-BR"
},
{
"key": "before_payment_instructions",
"value": "",
"locale": "pt-BR"
}
]
},
{
"resourceId": "gid://shopify/PaymentGateway/80760471705",
"translations": [],
"translatableContent": [
{
"key": "name",
"value": "Money Order",
"locale": "pt-BR"
},
{
"key": "message",
"value": "",
"locale": "pt-BR"
},
{
"key": "before_payment_instructions",
"value": "",
"locale": "pt-BR"
}
]
},
{
"resourceId": "gid://shopify/PaymentGateway/86935371929",
"translations": [],
"translatableContent": [
{
"key": "name",
"value": "Pix",
"locale": "pt-BR"
},
{
"key": "message",
"value": "",
"locale": "pt-BR"
},
{
"key": "before_payment_instructions",
"value": "",
"locale": "pt-BR"
}
]
}
]
}
},
"extensions": {
"cost": {
"requestedQueryCost": 29,
"actualQueryCost": 8,
"throttleStatus": {
"maximumAvailable": 2000,
"currentlyAvailable": 1992,
"restoreRate": 100
}
}
}
}
How do we get what users see when referring to “Bank Deposit” for example?
