UNPKG

@formatjs/intl

Version:

Internationalize JS apps. This library provides an API to format dates, numbers, and strings, including pluralization and handling translations.

6 lines (5 loc) 367 B
import { Formatters, IntlFormatters, OnErrorFn } from './types'; export declare function formatDisplayName({ locale, onError, }: { locale: string; onError: OnErrorFn; }, getDisplayNames: Formatters['getDisplayNames'], value: Parameters<IntlFormatters['formatDisplayName']>[0], options: Parameters<IntlFormatters['formatDisplayName']>[1]): string | undefined;