UNPKG

@intl-t/next

Version:

A Fully-Typed Object-Based i18n Translation Library for Next.js

8 lines (7 loc) 581 B
import type { Locale } from "@intl-t/locales"; export { isClient } from "@intl-t/global"; export declare const isRSC: boolean; export declare function getLocale<L extends Locale>(preventDynamic: true, defaultLocale?: L): L | undefined; export declare function getLocale<L extends Locale>(preventDynamic?: boolean, defaultLocale?: L): Promise<L> | L | undefined; export declare function setLocale<L extends Locale>(locale: L): string | undefined; export declare const getPathname: typeof import("next/navigation").usePathname | typeof import("./headers").getHeadersRequestPathname;