UNPKG

ra-core

Version:

Core components of react-admin, a frontend Framework for building admin applications on top of REST services, using ES6, React

18 lines 399 B
/** * Get the current locale * * @example * * import { useLocale } from 'react-admin'; * * const availableLanguages = { * en: 'English', * fr: 'Français', * } * const CurrentLanguage = () => { * const locale = useLocale(); * return <span>{availableLanguages[locale]}</span>; * } */ export declare const useLocale: () => string; //# sourceMappingURL=useLocale.d.ts.map