---
title: "translatableResource"
description: "Query a store's translation data."
doc_type: graphql
doc_category: adminGraphQL
doc_version: v20270301
source_url:
  html: 'https://developer.shopline.com/docs/admin-graph-ql-api/localizations/queries/translatable-resource'
  md: 'https://developer.shopline.com/docs/admin-graph-ql-api/localizations/queries/translatable-resource.md'
---
# translatableResource

Query a store's translation data.

- **Required Scopes:** `read_translation`
- **API Version:** v20270301
- **API Type:** Admin
- **API Protocol:** GraphQL
- **Operation Type:** Query

## Required Permissions

* `read_translation`

An access token is required to call this API. Refer to [Authorization](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md) for more information about how to obtain the token.

## Arguments

* `resourceId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The unique identifier for the resource. <br></br>For example, product ID `16057169190700063316363001`.

## Returns

* `resourceId`

  [ID!](https://developer.shopline.com/docs/admin-graph-ql-api/common/scalars/id.md)

  The unique identifier for the resource. <br></br>For example, product ID `16057169190700063316363001`.

* `translations`

  [[Translation]](https://developer.shopline.com/docs/admin-graph-ql-api/localizations/objects/translation.md)

  Translatable content.

* `translatableContent`

  [[TranslatableContent!]!](https://developer.shopline.com/docs/admin-graph-ql-api/localizations/objects/translatable-content.md)

  The resource content translation information.

## Examples

### Query original and translated data for a specific resource, market, and language, where the translation data is outdated

Query original and translated data for a specific resource, market, and language, where the translation data is outdated.

**Request:**

```json
query MyQuery {
  translatableResource(resourceId: "gid://shopline/Product/12259794083525432746782293") {
    resourceId
    translatableContent {
      digest
      key
      locale
      type
      value
    }
    translations(locale: "en", outdated: true, marketId: "2805979406510623080534") {
      key
      locale
      market {
        id
      }
      outdated
      updatedAt
      value
    }
  }
}
```

**Response:**

```json
{
  "data": {
    "data": {
      "translatableResource": {
        "resourceId": "gid://shopline/Product/12259794083525432746782293",
        "translatableContent": [
          {
            "digest": "361af515d4e29f4a80ac9f8702ab703b",
            "key": "title",
            "locale": "DEFAULT",
            "type": "STRING",
            "value": "title"
          }
        ],
        "translations": [
          {
            "key": "title",
            "locale": "en",
            "market": {
              "id": "2805979406510623080534"
            },
            "outdated": true,
            "type": "STRING",
            "updatedAt": "2025-01-05T00:00:00.492Z",
            "value": "desc"
          }
        ]
      }
    }
  }
}
```

### Query original and translated data of a specific resource and language within the primary market

Query original and translated data of a specific resource and language within the primary market.

**Request:**

```json
query MyQuery {
  translatableResource(resourceId: "gid://shopline/Product/12259794083525432746782293") {
    resourceId
    translatableContent {
      digest
      key
      locale
      type
      value
    }
    translations(locale: "en") {
      key
      locale
      market {
        id
      }
      outdated
      updatedAt
      value
    }
  }
}
```

**Response:**

```json
{
  "data": {
    "data": {
      "translatableResource": {
        "resourceId": "gid://shopline/Product/12259794083525432746782293",
        "translatableContent": [
          {
            "digest": "361af515d4e29f4a80ac9f8702ab703b",
            "key": "title",
            "locale": "DEFAULT",
            "type": "STRING",
            "value": "title"
          }
        ],
        "translations": [
          {
            "outdated": false,
            "type": "STRING",
            "updatedAt": "2025-01-05T00:00:00.492Z",
            "value": "desc",
            "key": "title",
            "locale": "en",
            "market": {
              "id": "2805979406510623080534"
            }
          }
        ]
      }
    }
  }
}
```

### Query original and translated data of a specific resource, market, and language

Query original and translated data of a specific resource, market, and language.

**Request:**

```json
query MyQuery {
  translatableResource(resourceId: "gid://shopline/Product/12259794083525432746782293") {
    resourceId
    translatableContent {
      digest
      key
      locale
      type
      value
    }
    translations(locale: "en", marketId: "2805979406510623080534") {
      key
      locale
      market {
        id
      }
      outdated
      updatedAt
      value
    }
  }
}
```

**Response:**

```json
{
  "data": {
    "data": {
      "translatableResource": {
        "resourceId": "gid://shopline/Product/12259794083525432746782293",
        "translatableContent": [
          {
            "digest": "361af515d4e29f4a80ac9f8702ab703b",
            "key": "title",
            "locale": "DEFAULT",
            "type": "STRING",
            "value": "title"
          }
        ],
        "translations": [
          {
            "key": "title",
            "locale": "en",
            "market": {
              "id": "2805979406510623080534"
            },
            "outdated": false,
            "type": "STRING",
            "updatedAt": "2025-01-05T00:00:00.492Z",
            "value": "desc"
          }
        ]
      }
    }
  }
}
```

## Error Handling

For detailed information about common codes, see [Status and error codes](https://developer.shopline.com/docs/apps/api-instructions-for-use/graph-ql-admin-api/overview.md#status-and-error-codes).

