react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
9 lines • 447 B
TypeScript
import type { Locales } from '@intlayer/config/client';
import { type LanguageContent } from '@intlayer/core';
/**
* On the client side, this function returns the translation of the provided multilang content.
*
* If the locale is not provided, it will use the locale from the client context
*/
export declare const t: <Content = string>(multilangContent: LanguageContent<Content>, locale?: Locales) => Content;
//# sourceMappingURL=t.d.ts.map