Translatable Resource
Requires access scope.
A resource in Shopify that contains fields available for translation into different languages. Accesses the resource's translatable content, existing Translation objects, and any nested resources that can also be translated.
The includes field keys, values, and digest hashes needed when registering translations.
You can retrieve translations for specific Locale and Market configurations. Each translation includes an outdated flag indicating whether the original content has changed since that translation was last updated.
Learn more about managing translated content.
Anchor to FieldsFields
- Anchor to nestedTranslatableResourcesnested•Translatable
Translatable Resources Resource Connection! non-null Nested translatable resources under the current resource.
- Anchor to resourceTyperesource•Translatable
Type Resource Type Return only resources of a type.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- Anchor to resourceIdresource•ID!
Id non-null GID of the resource.
- Anchor to translatableContenttranslatable•[Translatable
Content Content!]! non-null Translatable content.
- Anchor to marketIdmarket•ID
Id Filters translatable content by market ID. Use this argument to retrieve translatable content specific to a market.
Arguments
- Anchor to translationstranslations•[Translation!]!non-null
Translatable content translations (includes unpublished locales).
- Anchor to localelocale•String!required
Filters translations by locale.
- Anchor to outdatedoutdated•Boolean
Filters by outdated translations.
- Anchor to marketIdmarket•ID
Id Filters translations by market ID. Use this argument to retrieve content specific to a market.
Arguments
Anchor to QueriesQueries
- •query
Retrieves a resource that has translatable fields. Returns the resource's
Translationobjects for different locales and markets, along with the originaland digest values needed to register new translations. Provides access to existing translations, translatable content with digest hashes for translation registration, and nested translatable resources likeobjects orMetafieldobjects.Learn more about managing translated content.
- Anchor to resourceIdresource•ID!
Id required Find a translatable resource by ID.
Arguments
- •query
Returns a paginated list of
objects for a specific resource type. Each resource provides translatable content and digest values needed for themutation.Learn more about managing translated content.
Learn more about managing translated content.
- Anchor to resourceTyperesource•Translatable
Type Resource Type! required Return only resources of a type.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments
- •query
Returns a paginated list of
objects for the specified resource IDs. Each resource provides translatable content and digest values needed for themutation.Learn more about managing translated content.
- Anchor to resourceIdsresource•[ID!]!
Ids required Return only resources for given IDs.
- Anchor to firstfirst•Int
The first
nelements from the paginated list.- Anchor to afterafter•String
The elements that come after the specified cursor.
- Anchor to lastlast•Int
The last
nelements from the paginated list.- Anchor to beforebefore•String
The elements that come before the specified cursor.
- Anchor to reversereverse•BooleanDefault:false
Reverse the order of the underlying list.
Arguments