UNPKG

@hhgtech/hhg-components

Version:
8 lines (7 loc) 340 B
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>;