@intl-t/next
Version:
A Fully-Typed Object-Based i18n Translation Library for Next.js
6 lines (5 loc) • 337 B
TypeScript
export declare const LOCALE_HEADERS_KEY = "x-locale";
export declare const PATH_HEADERS_KEY = "x-path";
export declare const getHeaders: () => Promise<Headers>;
export declare function getHeadersRequestLocale(key?: string): Promise<string | null>;
export declare function getHeadersRequestPathname(key?: string): Promise<string | null>;