Merge label overrides into the cascade
withTimelineLabels
Functioncommon/timeline
projects/common/timeline/timeline-config.ts
Description#
Merge label overrides into the cascade. Keys left out keep their English library default, so a consumer translates what they need and nothing more.
provideTimelineConfig(
withTimelineLabels({
retry: 'Erneut versuchen',
emptyFallback: 'Noch keine Ereignisse.',
groupLabel: (group) => group.start.toLocaleDateString('de-AT'),
}),
)Signature#
withTimelineLabels(labels: CngxTimelineLabels)Parameters#
Returns#
CngxTimelineConfigFeature