react-intlayer
Version:
Easily internationalize i18n your React applications with type-safe multilingual content management.
13 lines (11 loc) • 466 B
TypeScript
import { LocalesValues, StrictModeLocaleMap } from "@intlayer/types";
//#region src/client/t.d.ts
/**
* 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
*/
declare const t: <Content = string>(multilangContent: StrictModeLocaleMap<Content>, locale?: LocalesValues) => Content;
//#endregion
export { t };
//# sourceMappingURL=t.d.ts.map