LocaleTuple

cart · /core·type

Language-country-currency triple that parameterizes every adapter call. Ensures currency is always co-located with locale so adapters never have to infer it from context.

Properties

country
string
currency
language
string

Example

const locale: LocaleTuple = { language: 'en', country: 'US', currency: 'USD' };
const ctx: AdapterCtx = { shop: {}, locale, logger: consoleLogger };

RunCartAdapterContractOpts runCartAdapterContract CartCapabilityUnsupportedError CartError CartNotFoundError CartProviderError CartUserError CartAdapter

Sourcetypes.ts:16Edit the JSDoc directly

On this page