UNPKG

react-intlayer

Version:

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

13 lines (12 loc) 670 B
import { DeclaredLocales, LocalesValues, StrictModeLocaleMap } from "@intlayer/types/module_augmentation"; import { Dictionary } from "@intlayer/types/dictionary"; //#region src/client/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 client context */ declare const useDictionaryAsync: <const T extends Dictionary, const L extends LocalesValues = DeclaredLocales>(dictionaryPromise: StrictModeLocaleMap<() => Promise<T>>, locale?: L) => Promise<T>; //#endregion export { useDictionaryAsync }; //# sourceMappingURL=useDictionaryAsync.d.ts.map