diff --git a/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/Waterfall/SyncBadge.stories.tsx b/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/Waterfall/SyncBadge.stories.tsx index cd64ea8a2d718..c7d3f6cc6f0c6 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/Waterfall/SyncBadge.stories.tsx +++ b/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/Waterfall/SyncBadge.stories.tsx @@ -8,40 +8,37 @@ import { storiesOf } from '@storybook/react'; import React from 'react'; import { SyncBadge } from './SyncBadge'; -storiesOf('app/TransactionDetails/SyncBadge', module).add( - 'sync=true', - () => { - return ( - - ); - }, - { - info: { - source: false +storiesOf('app/TransactionDetails/SyncBadge', module) + .add( + 'sync=true', + () => { + return ; + }, + { + info: { + source: false + } } - } -).add( + ) + .add( 'sync=false', - () => { - return ( - - ); - }, - { - info: { - source: false + () => { + return ; + }, + { + info: { + source: false + } } - } -).add( + ) + .add( 'sync=undefined', - () => { - return ( - - ); - }, - { - info: { - source: false + () => { + return ; + }, + { + info: { + source: false + } } - } -) + ); diff --git a/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/Waterfall/SyncBadge.tsx b/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/Waterfall/SyncBadge.tsx index 76bfcf09d717d..ffdffc660578f 100644 --- a/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/Waterfall/SyncBadge.tsx +++ b/x-pack/legacy/plugins/apm/public/components/app/TransactionDetails/WaterfallWithSummmary/WaterfallContainer/Waterfall/SyncBadge.tsx @@ -8,6 +8,7 @@ import { EuiBadge } from '@elastic/eui'; import React from 'react'; import styled from 'styled-components'; import { px, units } from '../../../../../../style/variables'; +import { i18n } from '@kbn/i18n'; const SpanBadge = styled(EuiBadge)` display: inline-block; @@ -21,9 +22,16 @@ interface SyncBadgeProps { export function SyncBadge({ sync }: SyncBadgeProps) { switch (sync) { case true: - return {'blocking'}; + return ( + + {i18n.translate('xpack.apm.transactionDetails.syncBadgeBlocking', { + defaultMessage: 'blocking' + })} + blocking + + ); case false: - return {'async'}; + return async; default: return null; }