Add formattedmessage to shrink/expand labels.

This commit is contained in:
Evelyn Eastmond committed 2019-05-07 11:42:40 -04:00
1 parent 4ec8ac16a8
commit 6935aa0820
1 file changed
+12 -1
+12 -1
View File
@@ -54,7 +54,18 @@ const CardHeader = ({onCloseCards, onShrinkExpandCards, onShowAll, totalSteps, s
draggable={false}
src={expanded ? shrinkIcon : expandIcon}
/>
{expanded ? 'Shrink' : 'Expand'}
{expanded ?
<FormattedMessage
defaultMessage="Shrink"
description="Title for button to shrink how-to card"
id="gui.cards.shrink"
/> :
<FormattedMessage
defaultMessage="Expand"
description="Title for button to expand how-to card"
id="gui.cards.expand"
/>
}
</div>
<div
className={styles.removeButton}