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.
12 lines (11 loc) • 646 B
TypeScript
import type { FormatXMLElementFn, Options as IntlMessageFormatOptions, PrimitiveType } from "intl-messageformat";
import * as React from "react";
import { type MessageDescriptor } from "@formatjs/intl";
export interface Props<V extends Record<string, any> = Record<string, React.ReactNode | PrimitiveType | FormatXMLElementFn<React.ReactNode>>> extends MessageDescriptor {
values?: V;
tagName?: React.ElementType<any>;
children?(nodes: React.ReactNode[]): React.ReactNode | null;
ignoreTag?: IntlMessageFormatOptions["ignoreTag"];
}
declare const MemoizedFormattedMessage: React.ComponentType<Props>;
export default MemoizedFormattedMessage;