/**
* Set the current locale in the I18nContext and re-render the app when the locale changes.
*
* @example
*
* import { useSetLocale } from 'react-admin';
*
* const availableLanguages = {
* en: 'English',
* fr: 'Français',
* }
* const LanguageSwitcher = () => {
* const setLocale = useSetLocale();
* return (
*
{
* Object.keys(availableLanguages).map(locale => {
* - setLocale(locale)}>
* {availableLanguages[locale]}
*
* })
* }
* );
* }
*
* @deprecated use useLocaleState instead
*/
export declare const useSetLocale: () => (value: string | ((value: string) => void), defaultValue?: string) => void;
//# sourceMappingURL=useSetLocale.d.ts.map