Chart translator
ChartTranslateFn, ChartTranslationVariables: generated from the source of active-charts.
Exported by @workspace/. Generated from the package source; part of the index of every export.
Types#
The translator a host supplies: a key of the contract and its interpolation values in, the text in the reader's language out. The key parameter is the contract (Chart), so inside this package a text outside the contract does not compile; any host translator that accepts a string key, such as the active-i18n Translate or a dynamic host translator, is assignable to it.
type ChartTranslateFn = (
key: ChartTranslationKey,
vars?: ChartTranslationVariables,
) => string;Interpolation values a chart passes to its translator.
type ChartTranslationVariables = Record<
string,
string | number | undefined
>;