UNPKG

react-intlayer

Version:

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

9 lines 654 B
import type { LocalesValues } from '@intlayer/config/client'; import type { Dictionary, DictionaryKeys, LanguageContent } from '@intlayer/core'; /** * 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 */ export declare const useDictionaryDynamic: <T extends Dictionary, K extends DictionaryKeys>(dictionaryPromise: LanguageContent<() => Promise<T>>, key: K, locale?: LocalesValues) => import("@intlayer/core").DeepTransformContent<T["content"], import("../plugins").IInterpreterPluginState>; //# sourceMappingURL=useDictionaryDynamic.d.ts.map