UNPKG

@firecms/core

Version:

Awesome Firebase/Firestore-based headless open-source CMS

18 lines (17 loc) 526 B
/** * Internal hook for translating FireCMS UI strings. * * Uses the `firecms_core` i18next namespace that is initialised by * `FireCMSi18nProvider`. Do NOT use `react-i18next` directly in internal * components — always go through this hook so the namespace is consistent. * * @example * const { t } = useTranslation(); * <Button>{t("save")}</Button> * * @internal */ export declare function useTranslation(): { t: (key: string, vars?: Record<string, string>) => string; i18n: import("i18next").i18n; };