UNPKG

next-i18next

Version:

The easiest way to translate your NextJs apps.

11 lines (10 loc) 691 B
import React from 'react'; import hoistNonReactStatics from 'hoist-non-react-statics'; import type { AppProps as NextJsAppProps } from 'next/app'; import { SSRConfig, UserConfig } from './types'; import { i18n as I18NextClient } from 'i18next'; export { Trans, useTranslation, withTranslation, } from 'react-i18next'; export declare let globalI18n: I18NextClient | null; export declare const appWithTranslation: <Props extends NextJsAppProps>(WrappedComponent: React.ComponentType<Props>, configOverride?: UserConfig | null) => ((props: Props & { pageProps: Props["pageProps"] & SSRConfig; }) => React.JSX.Element) & hoistNonReactStatics.NonReactStatics<React.ComponentType<Props>, {}>;