Requires read_translation access scope.
An access token is required to call this API. Refer to Authorization for more information about how to obtain the token.
Get a store's multiple translation data.
Arguments
after ● String
Returns elements following the specified cursor. The first argument must also be specified when using this argument.
before ● String
Returns elements preceding the specified cursor. The last argument must also be specified when using this argument.
first ● Int
Returns the first n elements in the list.
last ● Int
Returns the last n elements in the list.
reverse ● Boolean
Whether to reverse the order of the list.
● true: reverse
● false: do not reverse
Default value: false
resourceType ● String!non-null
The type of the resource. Valid values are:
  • COLLECTION: Collection
  • PRODUCT: Product
  • PRODUCT_Category: Product category
  • PRODUCT_OPTION: Product option
  • PRODUCT_VARIANT: Product variant
  • SELLING_PLAN: Selling plan
  • FILTER: Filter
  • FILTER_GROUP: Filter group
  • FILTER_VALUE: Filter value
  • SORT: Sort
  • DELIVERY_METHOD: Delivery method
  • PAYMENT_METHOD: Payment method
  • TAXES: Taxes
  • SETTLE_CONFIG: Settlement configuration
  • SETTLE_ADDITIONAL_INFO: Settlement additional information
  • WEBSITE_BLOG: Website blog
  • WEBSITE_BLOG_COLLECTION: Website blog collection
  • WEBSITE_CUSTOMIZE_PAGE: Website customize page
  • WEBSITE_NAVIGATION: Website navigation
  • WEBSITE_POLICY_PAGE: Website policy page
  • LINK: Link
  • METAFIELD: Metafield
Return
edges ● [TranslatableResourceEdge!]non-null
A list of edges, containing the nodes and their corresponding cursors.
More
pageInfo ● TranslatablePageInfo!non-null
Pagination information for the current page.
More
Status and error codes
For detailed information about common codes, see Status and error codes.
Example
Get a store's multiple translation data
query MyQuery {
translatableResources(resourceType: "PRODUCT", first: 1, reverse: false) {
edges {
cursor
node {
resourceId
translatableContent {
digest
key
locale
type
value
}
translations(locale: "en", outdated: false, marketId: "2805979406510623080534") {
key
locale
outdated
updatedAt
value
market {
id
}
}
}
}
}
}
Response
{
"data": {
"translatableResources": {
"edges": [
{
"cursor": "eyJyZXNvdXJjZUlkIjoiMTYwNjU4ODE0NTU5Njc5MjA2NTk1MzE5NTAifQ==",
"node": {
"resourceId": "gid://shopline/Product/16065881455967920659531950",
"translatableContent": [
{
"locale": "DEFAULT",
"type": "STRING",
"value": "Product title",
"digest": "07ec01a6c4ea382ed6ae7671b7bcf358",
"key": "title"
}
],
"translations": [
{
"key": "title",
"locale": "en",
"market": {
"id": "DEFAULT"
},
"outdated": false,
"value": "Default corpus English - Product title"
}
]
}
}
],
"pageInfo": {
"endCursor": "eyJyZXNvdXJjZUlkIjoiMTYwNjU4ODE0NTU5Njc5MjA2NTk1MzE5NTAifQ==",
"hasNextPage": "true",
"startCursor": "eyJyZXNvdXJjZUlkIjoiMTYwNjU4ODE0NTU5Njc5MjA2NTk1MzE5NTAifQ=="
}
}
}
}
Was this article helpful to you?