@hhgtech/hhg-components
Version:
Hello Health Group common components
8 lines (7 loc) • 340 B
TypeScript
import type { TranslationKeys } from "../../i18n/translationKeys";
import { LocaleType } from "../../interfaces/types";
export type UseTranslationsReturn<L> = {
locale: L;
t: (k: TranslationKeys, option?: Record<string, any>) => string;
};
export declare function useTranslations<L = LocaleType>(): UseTranslationsReturn<L>;