UNPKG

react-intlayer

Version:

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

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