useShopwareContext
Category:
Context & Language
Types
ts
export function useShopwareContext(): ShopwareContext
ts
export type ShopwareContext = {
devStorefrontUrl: string | null;
/**
* Shopware API client
*/
apiClient: ApiClient;
/**
* Browser locale, working in SSR
* If not provided, it will be "en-US"
*/
browserLocale: string;
};