Returns locales supported by the store (derived from markets)
JavaScript
import { createClient } from '@spree/sdk' const client = createClient({ baseUrl: 'https://your-store.com', publishableKey: '<api-key>', }) const locales = await client.locales.list()
{ "data": [ { "code": "de", "name": "de" }, { "code": "en", "name": "English (US)" } ] }
Documentation IndexFetch the complete documentation index at: https://spreecommerce.org/docs/llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: https://spreecommerce.org/docs/llms.txt
Use this file to discover all available pages before exploring further.
Publishable API key for store access
Comma-separated list of fields to include (e.g., name,slug,price). id is always included.
locales found
Show child attributes
Was this page helpful?
Contact support