UNPKG

next-intlayer

Version:

Simplify internationalization i18n in Next.js with context providers, hooks, locale detection, and multilingual content integration.

1 lines 998 B
{"version":3,"sources":["../../../src/types/NextPage.ts"],"sourcesContent":["import type { Locales } from '@intlayer/config';\nimport type { NextPage } from 'next';\nimport type { PropsWithChildren, ReactNode } from 'react';\n\nexport type LocalParams<T = {}> = {\n params: { locale: Locales } & T;\n};\n\nexport type LocalPromiseParams<T = {}> = {\n params: Promise<{ locale: Locales } & T>;\n};\n\nexport type Next14PageIntlayer<T = {}> = NextPage<LocalParams<T>>;\nexport type Next15PageIntlayer<T = {}> = (\n props: LocalPromiseParams<T>\n) => ReactNode | Promise<ReactNode>;\nexport type NextPageIntlayer<T = {}> = Next15PageIntlayer<T>;\n\nexport type Next14LayoutIntlayer<T = {}> = NextPage<\n PropsWithChildren<LocalParams<T>>\n>;\nexport type Next15LayoutIntlayer<T = {}> = (\n props: PropsWithChildren<LocalPromiseParams<T>>\n) => ReactNode | Promise<ReactNode>;\nexport type NextLayoutIntlayer<T = {}> = Next15LayoutIntlayer<T>;\n"],"mappings":";;;;;;;;;;;;;;AAAA;AAAA;","names":[]}