Category URL Translations
Translations for Category URLs
The Translations Admin GraphQL API for managing category URL translations is available on Stencil storefronts only.
The following entities are translatable for category URLs:
- Category URL Path
- URL path as
url_path— The URL path of the category on the storefront
- URL path 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:
Querying Category URL Translations (Storefront API)
Data is returned in the current locale determined by the context (e.g., Accept-Language header, channel language settings, or site subfolder). Category URLs on the storefront reflect the translated URL path; when translations exist for the requested locale, those translated values are returned.
Managing Category URL Translations (Admin API)
Category URL translation management (list, update, delete) is available via the Admin GraphQL API. These mutations and queries are not available on the Storefront API.
Query a List of Category URL Translations
Request
Response
The request below uses several variables for reusability. Replace {{channel_id}} and {{locale_code}} with the appropriate values for your use case.
This query returns a paginated list of translations with a maximum of 50 results per request. Use the cursor from the response in a subsequent request to fetch more results.
Query a Category URL Translation by Resource ID
The request below uses several variables for reusability. Replace {{resourceId}}, {{channel_id}}, and {{locale_code}} with appropriate values for your use case. Make sure resourceId follows the format from the Resource fields table.