import { i18n } from '@kbn/i18n' ; export const ASCENDING = ( fieldName ) => i18n . translate ( 'xpack.enterpriseSearch.appSearch.documents.search.sortBy.option.ascendingDropDownOptionLabel' , { defaultMessage : '{fieldName} (asc)' , values : { fieldName } , } ) ; export const DESCENDING = ( fieldName ) => i18n . translate ( 'xpack.enterpriseSearch.appSearch.documents.search.sortBy.option.descendingDropDownOptionLabel' , { defaultMessage : '{fieldName} (desc)' , values : { fieldName } , } ) ;