Home > widget-integration > CartService > getCurrentLocale

CartService.getCurrentLocale() method

Get current Shopify locale from window.Shopify object Override to customize locale detection logic

Signature:

protected getCurrentLocale(): string;

Returns:

string

Locale path (e.g., '', '/en', '/fr') without trailing slash