Requires write_translation access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Delete the translation data for a store resource.
Arguments
translationKeys ● [String!]!non-null
A list of business resource fields.
locales ● [String!]!non-null
A list of languages used in the market.
For example: en.
marketIds ● [ID!]non-null
A list of store markets.
resourceId ● ID!non-null
The unique identifier for the resource.
For example, product ID 16057169190700063316363001.
Return
translations ● [Translation!]non-null
Removed translations
More
userErrors ● [TranslationUserError!]!non-null
user errors
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Delete the translation data for specific markets, languages, and types within a resource
mutation TranslationsRemove {
translationsRemove(
translationKeys: ["title"]
locales: ["en"]
resourceId: "gid://shopline/Product/16065881455967920659531950"
marketIds: ["2805979406510623080534"]
) {
translations {
outdated
locale
value
key
market {
id
}
}
userErrors {
code
field
message
}
}
}
Response
{
"data": {
"translationsRemove": {
"translations": [
{
"value": "Default corpus English - Product title",
"key": "title",
"locale": "en",
"market": {
"id": "DEFAULT"
},
"outdated": false
}
]
}
}
}
Was this article helpful to you?