UNPKG

@intl-t/next

Version:

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

9 lines (8 loc) 324 B
import type { Translation } from "@intl-t/core"; 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;