react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
15 lines (14 loc) • 773 B
TypeScript
import { IInterpreterPluginState as IInterpreterPluginState$1 } from "../plugins.js";
import * as _intlayer_core4 from "@intlayer/core";
import * as _intlayer_types12 from "@intlayer/types";
import { DictionaryKeys, LocalesValues } from "@intlayer/types";
//#region src/server/useIntlayer.d.ts
/**
* On the server 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 server context
*/
declare const useIntlayer: <T extends DictionaryKeys, L extends LocalesValues>(key: T, locale?: L) => _intlayer_core4.DeepTransformContent<_intlayer_types12.DictionaryRegistryContent<T>, IInterpreterPluginState$1, L>;
//#endregion
export { useIntlayer };
//# sourceMappingURL=useIntlayer.d.ts.map