feat: localization universal search.

This commit is contained in:
a.bouhuolia
2021-08-21 19:14:24 +02:00
parent 42c0d6be95
commit 71e4a208d7
11 changed files with 24 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
import intl from 'react-intl-universal';
import { RESOURCES_TYPES } from '../../common/resourcesTypes';
import withDrawerActions from '../Drawer/withDrawerActions';
@@ -39,7 +40,7 @@ const transfromItemsToSearch = (item) => ({
*/
export const universalSearchItemBind = () => ({
resourceType: RESOURCES_TYPES.ITEM,
optionItemLabel: 'Items',
optionItemLabel: intl.get('items'),
selectItemAction: ItemUniversalSearchSelectAction,
itemSelect: transfromItemsToSearch,
});