Skip to content

Commit 427c794

Browse files
authored
Format message on extension descriptions (TurboWarp#1131)
1 parent de576aa commit 427c794

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

src/components/library/library.jsx

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,13 @@ class LibraryComponent extends React.Component {
229229
}
230230
}
231231
if (dataItem.description) {
232-
search.push(dataItem.description);
232+
if (typeof dataItem.description === 'string') {
233+
search.push(dataItem.description);
234+
} else {
235+
search.push(this.props.intl.formatMessage(dataItem.description.props, {
236+
APP_NAME
237+
}));
238+
}
233239
}
234240
return search
235241
.join('\n')

0 commit comments

Comments
 (0)