@intl-t/next
Version:
A Fully-Typed Object-Based i18n Translation Library for Next.js
7 lines (6 loc) • 458 B
TypeScript
import type { Locale } from "@intl-t/locales";
import { getHeadersRequestPathname } from "./headers";
export { setCachedRequestLocale as setRequestLocale } from "./cache";
export declare function getRequestLocale<L extends Locale>(preventDynamic: true): L | undefined;
export declare function getRequestLocale<L extends Locale>(preventDynamic?: boolean): Promise<L> | L | undefined;
export declare const getRequestPathname: typeof getHeadersRequestPathname;