diff --git a/src/core/public/i18n/i18n_eui_mapping.tsx b/src/core/public/i18n/i18n_eui_mapping.tsx index 4175dac712e827..2fe9657bce8c9a 100644 --- a/src/core/public/i18n/i18n_eui_mapping.tsx +++ b/src/core/public/i18n/i18n_eui_mapping.tsx @@ -218,11 +218,13 @@ export const getEuiContextMapping = (): EuiTokensObject => { 'euiColumnActions.hideColumn': i18n.translate('core.euiColumnActions.hideColumn', { defaultMessage: 'Hide column', }), - 'euiColumnActions.sort': ({ schemaLabel }: EuiValues) => - i18n.translate('core.euiColumnActions.sort', { - defaultMessage: 'Sort {schemaLabel}', - values: { schemaLabel }, - }), + 'euiColumnActions.sort': ({ schemaLabel }: EuiValues) => ( + + ), 'euiColumnActions.moveLeft': i18n.translate('core.euiColumnActions.moveLeft', { defaultMessage: 'Move left', }), diff --git a/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/helpers.test.tsx b/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/helpers.test.tsx index 42057062d8b547..2e684b9eda9892 100644 --- a/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/helpers.test.tsx +++ b/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/helpers.test.tsx @@ -98,12 +98,8 @@ describe('helpers', () => { describe('getColumnHeaders', () => { // additional properties used by `EuiDataGrid`: const actions = { - showSortAsc: { - label: 'Sort A-Z', - }, - showSortDesc: { - label: 'Sort Z-A', - }, + showSortAsc: true, + showSortDesc: true, }; const defaultSortDirection = 'desc'; const isSortable = true; diff --git a/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/helpers.tsx b/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/helpers.tsx index cd08e880bcb251..c658000e6d3311 100644 --- a/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/helpers.tsx +++ b/x-pack/plugins/timelines/public/components/t_grid/body/column_headers/helpers.tsx @@ -23,11 +23,10 @@ import { MINIMUM_ACTIONS_COLUMN_WIDTH, } from '../constants'; import { allowSorting } from '../helpers'; -import * as i18n from './translations'; const defaultActions: EuiDataGridColumnActions = { - showSortAsc: { label: i18n.SORT_AZ }, - showSortDesc: { label: i18n.SORT_ZA }, + showSortAsc: true, + showSortDesc: true, }; const getAllBrowserFields = (browserFields: BrowserFields): Array> =>