UNPKG

react-intlayer

Version:

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

15 lines (13 loc) 717 B
import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js"; import * as _intlayer_core0 from "@intlayer/core"; import { DeclaredLocales, Dictionary, LocalesValues } from "@intlayer/types"; //#region src/client/useDictionary.d.ts /** * On the server side, Hook that transform a dictionary and return the content * * If the locale is not provided, it will use the locale from the client context */ declare const useDictionary: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionary: T, locale?: L) => _intlayer_core0.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>; //#endregion export { useDictionary }; //# sourceMappingURL=useDictionary.d.ts.map