/** * Set the current locale using the TranslationContext * * This hook re-renders when the locale changes. * * @example * * import { useSetLocale } from '../app'; * * const availableLanguages = { * en: 'English', * fr: 'Français', * } * const LanguageSwitcher = () => { * const setLocale = useSetLocale(); * return ( * * ); * } */ declare const useSetLocale: () => SetLocale; declare type SetLocale = (locale: String) => Promise; export default useSetLocale;