useLocale
Returns the currently active locale string (e.g. "en", "fr").
import { useLocale } from '@strato-admin/core';
const LocaleIndicator = () => {
const locale = useLocale();
return <span>Current locale: {locale}</span>;
};
React-Admin reference
This hook is provided by react-admin. See the full documentation at marmelab.com/react-admin/useLocale.html.