mirror of
https://github.com/strapi/strapi.git
synced 2025-09-26 08:52:26 +00:00
14 lines
394 B
JavaScript
14 lines
394 B
JavaScript
import { useSelector } from 'react-redux';
|
|
import get from 'lodash/get';
|
|
|
|
const selectContentManagerListViewPluginOptions = state =>
|
|
state.get('content-manager_listView').contentType.pluginOptions;
|
|
|
|
const useHasI18n = () => {
|
|
const pluginOptions = useSelector(selectContentManagerListViewPluginOptions);
|
|
|
|
return get(pluginOptions, 'i18n.localized', false);
|
|
};
|
|
|
|
export default useHasI18n;
|