ember-intl
Version:
Internationalization for Ember projects
11 lines (8 loc) • 300 B
text/typescript
import type { IntlShape } from '@formatjs/intl';
export type FormatListParameters = Parameters<IntlShape<string>['formatList']>;
export function formatList(
intlShape: IntlShape,
...[value, formatOptions]: FormatListParameters
): string {
return intlShape.formatList(value, formatOptions);
}