Translations for Locations (Beta)
The Translations Admin GraphQL API is currently available on Catalyst storefronts only.
The locations translatable fields are:
- Name
- Address 1
- Address 2
- Description
- City
- State (optional)
- Meta Keywords
- Name (Special hours)
Examples
Below are examples of GraphQL queries and mutations for retrieving and managing translation settings for locations.
Query translations
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.
Request
Response
Example query: Query a list of translations
Query a translation by resourceId
When querying a translation by resourceId, you must provide the full
resourceId in the format bc/store/inventoryLocation/{location_id}.
This query returns a translation by resourceId.
Request
Response
Example query: Query a translation by resource id
Update a translation
This mutation updates a translation.
Request
Response
Example mutation: Update a translation
Delete a translation
The following mutation deletes a translation.
Request
Response
Example mutation: Delete a translation