This overview explains how to manage locales using the GraphQL Admin API.
The BigCommerce GraphQL Admin API enables developers to manage languages across different channels. By accessing locale data and related configurations, developers can more easily localize headless storefronts.
This feature is currently available for Catalyst channels. We are actively working to extend locale management capabilities to other channel types in upcoming releases.
With the GraphQL Admin API, merchants can add, update, or remove locales for each sales channel, change locale status, and set a locale as the default. Below are examples of GraphQL queries and mutations for retrieving and managing locale settings.
Each storefront can have up to 5 locales.
This section provides examples of GraphQL Admin API queries and mutations that demonstrate how to manage locales, along with the required HTTP configuration.
This query returns a static list of all locales currently supported by the platform.
The following query returns channel locales.
The following mutation adds a locale.
The following mutation updates a channel’s locale.
The following mutation deletes a channel’s locale.