Translations for Catalog Pages (Beta)
The Translations Admin GraphQL API is currently available on Catalyst storefronts only.
The following entities are translatable for catalog listing pages:
- Categories
- Name as
name - Description as
description - Page Title as
page_title - Meta Keywords as
meta_keywords - Meta Description as
meta_description - Search Keywords as
search_keywords
- Name as
- Brands
- Name as
name - Page Title as
page_title - Meta Keywords as
meta_keywords - Meta Description as
meta_description - Search Keywords as
search_keywords
- Name as
Resource fields
The entities listed above are referenced differently based on resource type and must use the following values in the queries outlined below:
Examples
Below are examples of GraphQL queries and mutations for retrieving and managing translation settings for catalog pages.
Query a List of Translations
This query returns a paginated list of translations by resourceType, channel and locale with a maximum of 50 results per request.
The request below uses several variables for reusability. Replace {{resourceType}}, {{channel_id}}, and {{locale_code}} with the appropriate values for your use case.
Request
Response
Query a Translation by Resource ID
This query returns a translation by resourceId.
The request below uses several variables for reusability. Replace {{resourceId}}, {{resourceType}}, {{channel_id}}, and {{locale_code}} with appropriate values for your use case. Make sure resourceId follows the format from the Resource fields table.
Request
Response
Update a Translation
Request
Response
The request below is for updating a category. For brands, replace resourceType and resourceId with appropriate values from the Resource fields table.
Delete a Translation
Request
Response
The request below is for deleting translations on a category. For brands, replace resourceType and resourceId with appropriate values from the Resource fields table.