Skip to content

Commit 6935aa0

Browse files
committed
Add formattedmessage to shrink/expand labels.
1 parent 4ec8ac1 commit 6935aa0

File tree

1 file changed

+12
-1
lines changed

1 file changed

+12
-1
lines changed

src/components/cards/cards.jsx

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,18 @@ const CardHeader = ({onCloseCards, onShrinkExpandCards, onShowAll, totalSteps, s
5454
draggable={false}
5555
src={expanded ? shrinkIcon : expandIcon}
5656
/>
57-
{expanded ? 'Shrink' : 'Expand'}
57+
{expanded ?
58+
<FormattedMessage
59+
defaultMessage="Shrink"
60+
description="Title for button to shrink how-to card"
61+
id="gui.cards.shrink"
62+
/> :
63+
<FormattedMessage
64+
defaultMessage="Expand"
65+
description="Title for button to expand how-to card"
66+
id="gui.cards.expand"
67+
/>
68+
}
5869
</div>
5970
<div
6071
className={styles.removeButton}

0 commit comments

Comments
 (0)