react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
14 lines • 760 B
TypeScript
import type { LocalesValues } from '@intlayer/config/client';
import { type DictionaryKeys } from '@intlayer/core';
/**
* On the client side, Hook that picking one dictionary by its key and return the content
*
* This hook will prerender the locale dictionary and fetch simultaneously the distant dictionaries to hydrate it.
*
*
* If the locale is not provided, it will use the locale from the client context
*/
export declare const useIntlayerAsync: <T extends DictionaryKeys>(key: T, locale?: LocalesValues) => import("@intlayer/core").DeepTransformContent<import("intlayer").IntlayerDictionaryTypesConnector[T]["content"], import("@intlayer/core").IInterpreterPluginState> & {
isLoading: boolean;
};
//# sourceMappingURL=useIntlayerAsync.d.ts.map