MCPcopy Create free account
hub / github.com/lightdash/lightdash / getFormatExpressionLocale

Function getFormatExpressionLocale

packages/common/src/utils/formatting.ts:599–608  ·  view source on GitHub ↗
(
    item:
        | Field
        | AdditionalMetric
        | TableCalculation
        | CustomDimension
        | undefined,
)

Source from the content-addressed store, hash-verified

597// expressions the same way formatItemValue does. Returns undefined for the
598// default/US separator so output stays byte-identical.
599export function getFormatExpressionLocale(
600 item:
601 | Field
602 | AdditionalMetric
603 | TableCalculation
604 | CustomDimension
605 | undefined,
606): string | undefined {
607 return separatorToNumfmtLocale(getEffectiveSeparator(item));
608}
609
610export function getCustomFormat(
611 item:

Callers 3

seriesValueFormatterFunction · 0.90
formatting.test.tsFile · 0.90
formatItemValueFunction · 0.85

Calls 2

separatorToNumfmtLocaleFunction · 0.85
getEffectiveSeparatorFunction · 0.85

Tested by

no test coverage detected