UNPKG

react-intl

Version:

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

20 lines 692 B
import * as React from 'react'; import { WithIntlProps } from './injectIntl'; import { IntlShape } from '../types'; import { FormatPluralOptions } from '@formatjs/intl'; interface Props extends FormatPluralOptions { value: number; intl: IntlShape; other: React.ReactNode; zero?: React.ReactNode; one?: React.ReactNode; two?: React.ReactNode; few?: React.ReactNode; many?: React.ReactNode; children?(value: React.ReactNode): React.ReactElement | null; } declare const FormattedPluralWithIntl: React.FC<WithIntlProps<Props>> & { WrappedComponent: React.ComponentType<Props>; }; export default FormattedPluralWithIntl; //# sourceMappingURL=plural.d.ts.map