UNPKG

react-intlayer

Version:

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

15 lines (14 loc) 929 B
import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js"; import * as _$_intlayer_core_interpreter0 from "@intlayer/core/interpreter"; import { DictionaryKeys, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation"; import { Dictionary } from "@intlayer/types/dictionary"; //#region src/client/useDictionaryDynamic.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 useDictionaryDynamic: <const T extends Dictionary, const K extends DictionaryKeys>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, key: K, locale?: LocalesValues) => _$_intlayer_core_interpreter0.DeepTransformContent<T["content"], IInterpreterPluginState$1, any>; //#endregion export { useDictionaryDynamic }; //# sourceMappingURL=useDictionaryDynamic.d.ts.map