/** * Localization of the library's built-in strings. Everything the library * prints without being handed the text — the overlays, the toolbar, and the * labels a tooltip puts beside a value it took apart itself — reads from here, * so a chart speaks one language wherever the words came from. */ export type LocaleKey = 'loading' | 'noData' /** Nothing could be drawn: the reason itself goes to the console. */ | 'renderError' /** Histogram: what a quarter bin is called, before its number. */ | 'quarter' | 'downloadPng' | 'resetZoom' /** Waterfall: the subtotal bar, and the running total beside a step. */ | 'waterfallTotal' | 'waterfallCumulative' /** Box plot: the five numbers of a box, top to bottom. */ | 'boxPlotMax' | 'boxPlotQ3' | 'boxPlotMedian' | 'boxPlotQ1' | 'boxPlotMin' /** Candlestick and OHLC: the four prices of a session. */ | 'ohlcOpen' | 'ohlcHigh' | 'ohlcLow' | 'ohlcClose'; export interface LocaleOptions { localeText?: Partial>; } export declare const DEFAULT_LOCALE: Record; export declare function localize(options: LocaleOptions | undefined, key: LocaleKey): string;