UNPKG

@refinedev/core

Version:

Refine is a React meta-framework for building enterprise-level, data-intensive applications rapidly with support for modern UI libraries and headless integrations.

18 lines 729 B
/** * It combines `useTranslate`, `useSetLocale` and `useGetLocale` hooks for a better developer experience. * It returns `i18nProvider` methods under the hood. * @returns `translate` method to translate the texts. * @returns `changeLocale` method to change the locale * @returns `getLocale` method to get the current locale. * * @see {@link https://refine.dev/docs/i18n/i18n-provider/} for more details. */ export declare const useTranslation: () => { translate: { (key: string, options?: any, defaultMessage?: string): string; (key: string, defaultMessage?: string): string; }; changeLocale: (lang: string) => any; getLocale: () => string; }; //# sourceMappingURL=useTranslation.d.ts.map