Translations for Locations (Beta)
Translations for Locations (Beta)
The Translations Admin GraphQL API is available on Catalyst storefronts by default and in early access for Stencil and other headless storefronts. To get early access, reach out to the BigCommerce support team.
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
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
Update a translation
This mutation updates a translation.
Request
Response
Delete a translation
The following mutation deletes a translation.