UNPKG

react-intlayer

Version:

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

9 lines 507 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 useDictionaryAsync: <T extends Dictionary>(dictionaryPromise: LanguageContent<() => Promise<T>>, locale?: LocalesValues) => Promise<any>; //# sourceMappingURL=useDictionaryAsync.d.ts.map