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