feat: message lang.

This commit is contained in:
elforjani3
2021-06-12 19:36:14 +02:00
parent 3fe85c519d
commit 7a384c54be
12 changed files with 25 additions and 21 deletions

View File

@@ -1,6 +1,7 @@
import React from 'react';
import { Omnibar } from '@blueprintjs/select';
import { MenuItem } from '@blueprintjs/core';
import { FormattedMessage as T } from 'components';
import { compose } from 'utils';
import withSearch from 'containers/GeneralSearch/withSearch';
@@ -30,7 +31,7 @@ function Search({
<Omnibar
className={'navbar-omnibar'}
isOpen={globalSearchShow}
noResults={<MenuItem disabled={true} text="No results." />}
noResults={<MenuItem disabled={true} text={<T id={'no_results'} />} />}
onClose={() => closeGlobalSearch(false)}
resetOnSelect={true}
itemRenderer={renderSearch}