UNPKG

react-intlayer

Version:

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

18 lines (16 loc) 929 B
import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js"; import * as _intlayer_core0 from "@intlayer/core"; import * as _intlayer_types0 from "@intlayer/types"; import { DeclaredLocales, DictionaryKeys, LocalesValues } from "@intlayer/types"; //#region src/client/useIntlayer.d.ts /** * On the client side, Hook that picking one dictionary by its key and return the content * * If the locale is not provided, it will use the locale from the client context * * When you need the raw string for attributes like `aria-label`, access the `.value` property of the returned content */ declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues = DeclaredLocales>(key: T, locale?: L) => _intlayer_core0.DeepTransformContent<_intlayer_types0.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>; //#endregion export { useIntlayer }; //# sourceMappingURL=useIntlayer.d.ts.map