UNPKG

ag-charts-types

Version:

Advanced Charting / Charts supporting Javascript / Typescript / React / Angular / Vue

16 lines (15 loc) 709 B
import type { Formatter } from './callbackOptions'; export interface AgLocaleOptions { /** A record of locale texts keyed by id. */ localeText?: Record<string, string>; /** Formatter that generates the text displayed to the user. */ getLocaleText?: Formatter<MessageFormatterParams>; } export interface MessageFormatterParams { /** Key of the translation - usually defined in `localeText`. */ key: string; /** The default, unformatted translation, if it exists in `localeText`. */ defaultValue: string | undefined; /** Variables used for the translation. Keyed by the name of the variables. Values can be string, numbers, or dates. */ variables: Record<string, any>; }