Skip to main content
Version: Next

Interface: LocalizationOptions

Represents options for formatting dates, times, and prices according to a locale.

Properties

locale

locale: string

Current locale used to format dates. Uses the browser's language settings by default.

see https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects/Intl#Locale_identification_and_negotiation

defaultvalue navigator.language


priceFormatter

Optional priceFormatter: PriceFormatterFn

Override formatting of the price scale crosshair label. Can be used for cases that can't be covered with built-in price formats.

see PriceFormatCustom

defaultvalue undefined


timeFormatter

Optional timeFormatter: TimeFormatterFn

Override formatting of the time scale crosshair label.

defaultvalue undefined


dateFormat

dateFormat: string

Date formatting string.

Can contain yyyy, yy, MMMM, MMM, MM and dd literals which will be replaced with corresponding date's value.

Ignored if timeFormatter has been specified.

defaultvalue 'dd MMM \'yy'