UNPKG

react-intlayer

Version:

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

10 lines 431 B
import type { LanguageContent } from '@intlayer/core'; /** * On the client side, hook to get the translation content based on the locale */ export declare const useContent: <Content>(languageContent: LanguageContent<Content>) => { locale: import("intlayer").LocalesValues; content: Content; t: <Content_1 = string>(languageContent: LanguageContent<Content_1>) => Content_1; }; //# sourceMappingURL=useContent.d.ts.map