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.
11 lines (10 loc) • 328 B
JavaScript
import "@formatjs/intl";
export { createIntlCache } from "@formatjs/intl";
export { createIntl } from "./src/components/createIntl.js";
// Identity functions — duplicated here to avoid importing from "use client" index
export function defineMessages(msgs) {
return msgs;
}
export function defineMessage(msg) {
return msg;
}