box-ui-elements
Version:
Box UI Elements
99 lines (96 loc) • 4.63 kB
JavaScript
import { defineMessages } from 'react-intl';
const messages = defineMessages({
defaultErrorNoticeText: {
defaultMessage: 'Something went wrong. Please try again later.',
description: 'Default error notification text rendered when API fails',
id: 'be.contentSharing.defaultErrorNoticeText',
},
badRequestError: {
defaultMessage: 'The request for this item was malformed.',
description: 'Message that appears when the request for the ContentSharing Element is malformed.',
id: 'be.contentSharing.badRequestError',
},
loadingError: {
defaultMessage: 'Could not load shared link for this item.',
description: 'Message that appears when the ContentSharing Element cannot be loaded.',
id: 'be.contentSharing.loadingError',
},
noAccessError: {
defaultMessage: 'You do not have access to this item.',
description: 'Message that appears when the user cannot access the item for the ContentSharing Element.',
id: 'be.contentSharing.noAccessError',
},
notFoundError: {
defaultMessage: 'Could not find shared link for this item.',
description: 'Message that appears when the item for the ContentSharing Element cannot be found.',
id: 'be.contentSharing.notFoundError',
},
sharedLinkUpdateError: {
defaultMessage: 'Could not update the shared link for this item.',
description: 'Message that appears when the shared link in the ContentSharing Element cannot be updated.',
id: 'be.contentSharing.sharedLinkUpdateError',
},
sharedLinkSettingsUpdateSuccess: {
defaultMessage: 'The shared link for this item was successfully updated.',
description:
'Message that appears when the shared link settings in the ContentSharing Element were successfully updated.',
id: 'be.contentSharing.sharedLinkSettingsUpdateSuccess',
},
sharedLinkRemovalSuccess: {
defaultMessage: 'The shared link for this item was removed.',
description: 'Message that appears when the shared link in the ContentSharing Element was removed.',
id: 'be.contentSharing.sharedLinkRemovalSuccess',
},
collaboratorsLoadingError: {
defaultMessage: 'Could not retrieve collaborators for this item.',
description: 'Message that appears when collaborators cannot be retrieved in the ContentSharing Element.',
id: 'be.contentSharing.collaboratorsLoadingError',
},
getContactsError: {
defaultMessage: 'Could not retrieve contacts.',
description: 'Message that appears when users cannot be retrieved in the ContentSharing Element.',
id: 'be.contentSharing.getContactsError',
},
sendInvitesError: {
defaultMessage: 'Could not send invites.',
description:
'Message that appears when collaborators cannot be added to the shared link in the ContentSharing Element.',
id: 'be.contentSharing.sendInvitesError',
},
sendInvitesSuccess: {
defaultMessage: 'Successfully invited collaborators.',
description:
'Message that appears when collaborators were added to the shared link in the ContentSharing Element.',
id: 'be.contentSharing.sendInvitesSuccess',
},
sendInvitationsError: {
defaultMessage:
'{count, plural, one {Failed to invite a collaborator.} other {Failed to invite {count} collaborators.}}',
description:
'Message that appears when collaborators cannot be added to the shared link in the ContentSharing Element.',
id: 'be.contentSharing.sendInvitationsError',
},
sendInvitationsSuccess: {
defaultMessage:
'{count, plural, one {Successfully invited a collaborator.} other {Successfully invited {count} collaborators.}}',
description:
'Message that appears when collaborators were added to the shared link in the ContentSharing Element.',
id: 'be.contentSharing.sendInvitationsSuccess',
},
groupContactLabel: {
defaultMessage: 'Group',
description: 'Display text for a Group contact type',
id: 'be.contentSharing.groupContactLabel',
},
noticeCloseLabel: {
defaultMessage: 'Close',
description: 'Close button aria label for the notifications',
id: 'be.contentSharing.noticeCloseLabel',
},
errorNoticeIcon: {
defaultMessage: 'Error',
description: 'Icon label for the error notifications',
id: 'be.contentSharing.errorNoticeIcon',
},
});
export default messages;