@welldot/render

applyRenderLocale

Returns a copy of config with constructionLabels.labels, legend.labels, tooltipLabels, labels.typeLabels, labels.continuation.prefix, columnHeaders.labels and overlap.label resolved from RENDERLABELS for locale. Every other field of config is preserved unchanged.

applyRenderLocale(config, locale): RenderConfig

Returns a copy of config with constructionLabels.labels, legend.labels, tooltipLabels, labels.typeLabels, labels.continuation.prefix, columnHeaders.labels and overlap.label resolved from RENDER_LABELS for locale. Every other field of config is preserved unchanged.

Parameters

config

RenderConfig

locale

"en" | "pt"

Returns

RenderConfig