Skip to main content

@dialstack/sdk / index / FormattingOptions

Interface: FormattingOptions

Defined in: sdk/src/types/components.ts:406

Formatting options for components

Properties

dateLocale?

TypeScript
optional dateLocale?: string;

Defined in: sdk/src/types/components.ts:417

Locale for date/time formatting (BCP 47 language tag)

Default

TypeScript
'en-US'

defaultCountry?

TypeScript
optional defaultCountry?: string;

Defined in: sdk/src/types/components.ts:411

Default country code for phone number formatting (ISO 3166-1 alpha-2)

Default

TypeScript
'US'

showTimezone?

TypeScript
optional showTimezone?: boolean;

Defined in: sdk/src/types/components.ts:429

Show timezone in date/time display

Default

TypeScript
true

use24HourTime?

TypeScript
optional use24HourTime?: boolean;

Defined in: sdk/src/types/components.ts:423

Use 24-hour time format

Default

TypeScript
false