i18n
This commit is contained in:
parent
6c80a681e2
commit
cb2814f364
|
@ -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)",
|
||||
|
|
|
@ -110,7 +110,7 @@ class ContentBlock extends React.PureComponent<Props> {
|
|||
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<Props> {
|
|||
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)
|
||||
})
|
||||
|
|
Loading…
Reference in New Issue
Block a user