Use delete word instead of remove

This commit is contained in:
dominik-zeglen 2019-08-20 12:05:08 +02:00
parent ad43229a20
commit 6eb05f2367
5 changed files with 15 additions and 15 deletions

View file

@ -25,7 +25,7 @@ const AttributeBulkDeleteDialog: React.StatelessComponent<
onClose={onClose}
onConfirm={onConfirm}
title={intl.formatMessage({
defaultMessage: "Remove attributes",
defaultMessage: "Delete attributes",
description: "dialog title",
id: "attributeBulkDeleteDialogTitle"
})}
@ -33,7 +33,7 @@ const AttributeBulkDeleteDialog: React.StatelessComponent<
>
<DialogContentText>
<FormattedMessage
defaultMessage="Are you sure you want to remove {counter, plural,
defaultMessage="Are you sure you want to delete {counter, plural,
one {this attribute}
other {{displayQuantity} attributes}
}?"

View file

@ -30,14 +30,14 @@ const AttributeDeleteDialog: React.FC<AttributeDeleteDialogProps> = ({
onConfirm={onConfirm}
variant="delete"
title={intl.formatMessage({
defaultMessage: "Remove attribute",
defaultMessage: "Delete attribute",
description: "dialog title",
id: "attributeDeleteDialogTitle"
})}
>
<DialogContentText>
<FormattedMessage
defaultMessage="Are you sure you want to remove {name}?"
defaultMessage="Are you sure you want to delete {name}?"
description="dialog content"
id="attributeDeleteDialogContent"
values={{

View file

@ -34,7 +34,7 @@ const AttributeValueDeleteDialog: React.FC<AttributeValueDeleteDialogProps> = ({
onConfirm={onConfirm}
variant="delete"
title={intl.formatMessage({
defaultMessage: "Remove attribute value",
defaultMessage: "Delete attribute value",
description: "dialog title",
id: "attributeValueDeleteDialogTitle"
})}
@ -42,7 +42,7 @@ const AttributeValueDeleteDialog: React.FC<AttributeValueDeleteDialogProps> = ({
<DialogContentText>
{useName ? (
<FormattedMessage
defaultMessage='Are you sure you want to remove "{ name }" value? If you remove it you wont be able to assign it to any of the products with "{ attributeName }" attribute.'
defaultMessage='Are you sure you want to delete "{ name }" value? If you remove it you wont be able to assign it to any of the products with "{ attributeName }" attribute.'
id="attributeValueDeleteDialogContentWithAttributeName"
values={{
attributeName,
@ -51,8 +51,8 @@ const AttributeValueDeleteDialog: React.FC<AttributeValueDeleteDialogProps> = ({
/>
) : (
<FormattedMessage
defaultMessage='Are you sure you want to remove "{ name }" value?'
description="remove attribute value"
defaultMessage='Are you sure you want to delete "{ name }" value?'
description="delete attribute value"
id="attributeValueDeleteDialogContentWithoutAttributeName"
values={{
name

View file

@ -67,7 +67,7 @@ const AttributeDetails: React.FC<AttributeDetailsProps> = ({ id, params }) => {
if (data.attributeDelete.errors.length === 0) {
notify({
text: intl.formatMessage({
defaultMessage: "Attribute removed",
defaultMessage: "Attribute deleted",
id: "attributeDetailsAttributeRemoveSuccess"
})
});
@ -78,9 +78,9 @@ const AttributeDetails: React.FC<AttributeDetailsProps> = ({ id, params }) => {
if (data.attributeValueDelete.errors.length === 0) {
notify({
text: intl.formatMessage({
defaultMessage: "Value removed",
description: "attribute value removed",
id: "attributeDetailsAttributeValueRemoveSuccess"
defaultMessage: "Value deleted",
description: "attribute value deleted",
id: "attributeDetailsAttributeValueDeleteSuccess"
})
});
closeModal();

View file

@ -73,9 +73,9 @@ const AttributeList: React.FC<AttributeListProps> = ({ params }) => {
closeModal();
notify({
text: intl.formatMessage({
defaultMessage: "Attributes successfully removed",
description: "remove multiple attributes",
id: "attributeListAttributesRemoved"
defaultMessage: "Attributes successfully delete",
description: "deleted multiple attributes",
id: "attributeListAttributesDeleted"
})
});
reset();