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.

10 lines (9 loc) 353 B
import { type CreateIntlFn } from "@formatjs/intl"; import * as React from "react"; import type { IntlConfig, IntlShape } from "../types.js"; /** * Create intl object * @param config intl config * @param cache cache for formatter instances to prevent memory leak */ export declare const createIntl: CreateIntlFn<React.ReactNode, IntlConfig, IntlShape>;