UNPKG

intl-t

Version:

A Fully-Typed Node-Based i18n Translation Library

9 lines (8 loc) 320 B
import type { Translation } from "../types"; export interface Cache { locale: string; t: Translation; } export declare const getCache: () => Partial<Cache>; export declare function getCachedRequestLocale(): string | undefined; export declare function setCachedRequestLocale(locale?: string): string | undefined;