diff --git a/webapp/i18n/en.json b/webapp/i18n/en.json index 20aff17b9..d35cec5af 100644 --- a/webapp/i18n/en.json +++ b/webapp/i18n/en.json @@ -24,13 +24,8 @@ "CommentsList.send": "Send", "ContentBlock.Delete": "Delete", "ContentBlock.DeleteAction": "delete", - "ContentBlock.Text": "Text", - "ContentBlock.addDivider": "add divider", + "ContentBlock.addElement": "add {type}", "ContentBlock.addImage": "add image", - "ContentBlock.addText": "add text", - "ContentBlock.divider": "Divider", - "ContentBlock.editCardText": "edit card text", - "ContentBlock.editText": "Edit text...", "ContentBlock.insertAbove": "Insert above", "ContentBlock.moveDown": "Move down", "ContentBlock.moveUp": "Move up", @@ -98,7 +93,6 @@ "Sidebar.settings": "Settings", "Sidebar.spanish": "Spanish", "Sidebar.template-from-board": "New template from board", - "Sidebar.title": "Boards", "Sidebar.untitled": "Untitled", "Sidebar.untitled-board": "(Untitled Board)", "Sidebar.untitled-view": "(Untitled View)", diff --git a/webapp/src/components/contentBlock.tsx b/webapp/src/components/contentBlock.tsx index 5b26a2cb7..aafa7a884 100644 --- a/webapp/src/components/contentBlock.tsx +++ b/webapp/src/components/contentBlock.tsx @@ -110,7 +110,7 @@ class ContentBlock extends React.PureComponent { onClick={() => { Utils.selectLocalFile((file) => { mutator.performAsUndoGroup(async () => { - const description = intl.formatMessage({id: 'ContentBlock.addElement', defaultMessage: 'add {type, string}'}, {type: contentRegistry.typeDisplayText(intl, type)}) + const description = intl.formatMessage({id: 'ContentBlock.addElement', defaultMessage: 'add {type}'}, {type: contentRegistry.typeDisplayText(intl, type)}) const newBlock = await mutator.createImageBlock(card, file, description) if (newBlock) { const contentOrder = contents.map((o) => o.id) @@ -137,7 +137,7 @@ class ContentBlock extends React.PureComponent { const contentOrder = contents.map((o) => o.id) contentOrder.splice(index, 0, newBlock.id) mutator.performAsUndoGroup(async () => { - const description = intl.formatMessage({id: 'ContentBlock.addElement', defaultMessage: 'add {type, string}'}, {type: contentRegistry.typeDisplayText(intl, type)}) + const description = intl.formatMessage({id: 'ContentBlock.addElement', defaultMessage: 'add {type}'}, {type: contentRegistry.typeDisplayText(intl, type)}) await mutator.insertBlock(newBlock, description) await mutator.changeCardContentOrder(card, contentOrder, description) })