translatable Resource
Requires access scope.
Retrieves a resource that has translatable fields. Returns the resource's Translation objects for different locales and markets, along with the original and digest values needed to register new translations. Provides access to existing translations, translatable content with digest hashes for translation registration, and nested translatable resources like objects or Metafield objects.
Learn more about managing translated content.
Arguments
- resourceId (ID!)
- Anchor to resourceIdresource•ID!
Id required Find a translatable resource by ID.
Anchor to Possible returnsPossible returns
- TranslatableResource (TranslatableResource)
- Anchor to TranslatableResourceTranslatable•Translatable
Resource Resource A resource in Shopify that contains fields available for translation into different languages. Accesses the resource's translatable content, existing
Translationobjects, 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
LocaleandMarketconfigurations. Each translation includes anoutdatedflag indicating whether the original content has changed since that translation was last updated.Learn more about managing translated content.
- 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