useLocale
Description#
Use this hook to manage the application locale.
caution
Must be used within a TranslationProviderContext.
Usage#
import { useLocale } from '@springtree/eva-suite-react-hooks';
const Example = () => { // ... const localeContext = useLocale(); const { locale, changeLocale } = localeContext; // ...};
export default Example;