/** * 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 ( *