Returns locales supported by the store (derived from markets)
JavaScript
import { createSpreeClient } from '@spree/sdk' const client = createSpreeClient({ baseUrl: 'https://your-store.com', publishableKey: '<api-key>', }) const locales = await client.store.locales.list()
{ "data": [ { "code": "de", "name": "de" }, { "code": "en", "name": "English (US)" } ] }
Publishable API key for store access
locales found
Show child attributes
Was this page helpful?