react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
15 lines (13 loc) • 810 B
TypeScript
import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
import * as _intlayer_core2 from "@intlayer/core";
import { DeclaredLocales, Dictionary, LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
//#region src/server/useDictionaryAsync.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 server context
*/
declare const useDictionaryAsync: <T extends Dictionary, L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: L) => Promise<_intlayer_core2.DeepTransformContent<T["content"], IInterpreterPluginState$1, L>>;
//#endregion
export { useDictionaryAsync };
//# sourceMappingURL=useDictionaryAsync.d.ts.map