UNPKG

next-i18next

Version:

The easiest way to translate your NextJs apps.

15 lines (14 loc) 819 B
import { SSRConfig, UserConfig } from "./types.mjs"; import React from "react"; import hoistNonReactStatics from "hoist-non-react-statics"; import { Trans, useTranslation, withTranslation } from "react-i18next"; import { i18n } from "i18next"; import { AppProps } from "next/app"; //#region src/pagesRouter/appWithTranslation.d.ts declare let globalI18n: i18n | null; declare const appWithTranslation: <Props extends AppProps>(WrappedComponent: React.ComponentType<Props>, configOverride?: UserConfig | null) => ((props: Props & { pageProps: Props["pageProps"] & SSRConfig; }) => React.JSX.Element) & hoistNonReactStatics.NonReactStatics<React.ComponentType<Props>, {}>; //#endregion export { Trans, appWithTranslation, globalI18n, useTranslation, withTranslation }; //# sourceMappingURL=appWithTranslation.d.mts.map