UNPKG

next-intl

Version:

Internationalization (i18n) for Next.js

10 lines (9 loc) 577 B
import type { ComponentProps } from 'react'; import type { Locale } from 'use-intl'; import { IntlProvider } from 'use-intl/react'; type Props = Omit<ComponentProps<typeof IntlProvider>, 'locale'> & { /** This is automatically received when being rendered from a Server Component. In all other cases, e.g. when rendered from a Client Component, a unit test or with the Pages Router, you can pass this prop explicitly. */ locale?: Locale; }; export default function NextIntlClientProvider({ locale, ...rest }: Props): import("react/jsx-runtime").JSX.Element; export {};