UNPKG

react-intlayer

Version:

Easily internationalize i18n your React applications with type-safe multilingual content management.

9 lines 608 B
import type { LocalesValues } from '@intlayer/config/client'; import { type DictionaryKeys } from '@intlayer/core'; /** * On the server side, Hook that picking one dictionary by its key and return the content * * If the locale is not provided, it will use the locale from the server context */ export declare const useIntlayer: <T extends DictionaryKeys, K extends LocalesValues>(key: T, locale?: K) => import("@intlayer/core").DeepTransformContent<import("intlayer").IntlayerDictionaryTypesConnector[T]["content"], import("../plugins").IInterpreterPluginState>; //# sourceMappingURL=useIntlayer.d.ts.map